Methods
wrap
- wrap<T>(key: string, wrapper: (callback: (error: any, result: T) => void) => any, options: CacheConfig): Promise<any>
-
Type parameters
Parameters
-
key: string
-
wrapper: (callback: (error: any, result: T) => void) => any
-
- (callback: (error: any, result: T) => void): any
-
Parameters
-
callback: (error: any, result: T) => void
-
- (error: any, result: T): void
Returns any
-
Returns Promise<any>