@deboxsoft/module-core
Advanced tools
{ | ||
"name": "@deboxsoft/module-core", | ||
"version": "2.4.5", | ||
"version": "2.4.6", | ||
"license": "SEE LICENSE IN LICENSE", | ||
@@ -5,0 +5,0 @@ "maintainers": [ |
@@ -55,18 +55,3 @@ export interface CachingConfig { | ||
} | ||
export interface MultiCache { | ||
set<T>(key: string, value: T, options?: CachingConfig): Promise<T>; | ||
set<T>(key: string, value: T, ttl: number): Promise<T>; | ||
set<T>(key: string, value: T, options: CachingConfig, callback: (error: any) => void): void; | ||
set<T>(key: string, value: T, ttl: number, callback: (error: any) => void): void; | ||
mset<T>(...args: any[]): Promise<T>; | ||
wrap<T>(...args: WrapArgsType<T>[]): Promise<T>; | ||
get<T>(key: string, callback: (error: any, result: T | undefined) => void): void; | ||
get<T>(key: string): Promise<T | undefined>; | ||
mget<T>(...keys: (string | ((error: any, result: T | undefined) => void))[]): void; | ||
mget<T>(...keys: string[]): Promise<T | undefined>; | ||
del(key: string, callback: (error: any) => void): void; | ||
del(key: string): Promise<any>; | ||
reset(cb: () => void): void; | ||
} | ||
export declare type Caching = (IConfig: StoreConfig & CacheOptions) => Cache; | ||
export declare type MultiCaching = (Caches: Cache[], options?: CacheOptions) => MultiCache; | ||
export declare type MultiCaching = (Caches: Cache[], options?: CacheOptions) => Cache; |
69114
-1.22%1991
-0.75%