mikro-orm-cache-adapter-redis
Advanced tools
Comparing version 1.0.1 to 1.1.0
# Mikro ORM - Redis cache adapter - Changelog | ||
## 1.1.0 | ||
- Ignore cache when redis is not connected | ||
## 1.0.1 | ||
@@ -4,0 +7,0 @@ - Expose adapter as default |
import { RedisCacheAdapter } from './RedisCacheAdapter'; | ||
export * from './RedisCacheAdapter'; | ||
export default RedisCacheAdapter; |
@@ -17,6 +17,7 @@ import { CacheAdapter } from '@mikro-orm/core'; | ||
private readonly expiration?; | ||
private connected; | ||
constructor(options: RedisCacheAdapterOptions); | ||
get(key: string): Promise<any>; | ||
get<T = any>(key: string): Promise<T | undefined>; | ||
set(name: string, data: any, origin: string, expiration?: number | undefined): Promise<void>; | ||
clear(): Promise<void>; | ||
} |
{ | ||
"name": "mikro-orm-cache-adapter-redis", | ||
"version": "1.0.1", | ||
"version": "1.1.0", | ||
"description": "A redis cache adapter for mikro-orm", | ||
"main": "dist/index.js", | ||
"typings": "dist/index.d.ts", | ||
"main": "dist/index.cjs.js", | ||
"module": "dist/index.esm.js", | ||
"types": "dist/index.d.ts", | ||
"repository": "https://github.com/ramiel/mikro-orm-cache-adapter-redis", | ||
@@ -12,4 +13,4 @@ "author": "Fabrizio Ruggeri", | ||
"prepare": "npm run build", | ||
"build": "tsc", | ||
"build-watch": "tsc -w" | ||
"build": "rollup -c --environment NODE_ENV:production", | ||
"build-watch": "rollup -c --environment NODE_ENV:production -w --no-watch.clearScreen" | ||
}, | ||
@@ -20,4 +21,6 @@ "dependencies": { | ||
"devDependencies": { | ||
"@mikro-orm/core": "^4.4.3", | ||
"ioredis": "^4.22.0", | ||
"@mikro-orm/core": "^4.5.0", | ||
"ioredis": "^4.24.4", | ||
"rollup": "^2.42.4", | ||
"rollup-plugin-typescript2": "^0.30.0", | ||
"typescript": "^4.1.3" | ||
@@ -24,0 +27,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19649
337
5
1