ICachingStrategy
Methods
get()
get<
T>(cacheKey):Promise<null|T&ICachable>
Type parameters
• T
Parameters
• cacheKey: string
Returns
Promise<null | T & ICachable>
Source
getOrCreate()
getOrCreate<
T>(cacheKey,createFunction,updateFunction?):Promise<T&ICachable>
Type parameters
• T
Parameters
• cacheKey: string
• createFunction
• updateFunction?
Returns
Promise<T & ICachable>
Source
remove()
remove(
cacheKey):void|Promise<void>
Parameters
• cacheKey: string
Returns
void | Promise<void>
Source
setCacheItem()
setCacheItem<
T>(cacheKey,item):void|Promise<void>
Type parameters
• T
Parameters
• cacheKey: string
• item: T & ICachable
Returns
void | Promise<void>