Comparing version 0.0.2 to 0.0.3
@@ -8,3 +8,3 @@ import { IocContext } from 'power-di'; | ||
constructor(ioc?: IocContext, cacheManager?: CacheManager); | ||
cache(cacheKey: CacheKeyType, config?: CacheConfig): (target: any, key: string, descriptor: TypedPropertyDescriptor<(...args: any[]) => Promise<any>>) => any; | ||
cachePut(cacheKey: CacheKeyType, config?: CacheConfig): (target: any, key: string, descriptor: TypedPropertyDescriptor<(...args: any[]) => Promise<any>>) => any; | ||
cacheEvict(cacheKey: CacheKeyType | CacheKeyType[]): (target: any, key: string, descriptor: TypedPropertyDescriptor<(...args: any[]) => Promise<any>>) => any; | ||
@@ -11,0 +11,0 @@ private getCacheManager; |
@@ -19,3 +19,3 @@ "use strict"; | ||
} | ||
cache(cacheKey, config) { | ||
cachePut(cacheKey, config) { | ||
config = Object.assign({}, new CacheManager_1.CacheConfig, config); | ||
@@ -22,0 +22,0 @@ const cacheManager = this.getCacheManager(); |
{ | ||
"name": "any-cache", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "common cache lib for js/ts", | ||
@@ -10,2 +10,3 @@ "keywords": [ | ||
"main": "./lib/index.js", | ||
"types": "./lib/index.d.ts", | ||
"files": [ | ||
@@ -12,0 +13,0 @@ "lib/*.js", |
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
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
14416