InMemoryCachingStrategy
Extends
Constructors
new InMemoryCachingStrategy()
new InMemoryCachingStrategy():
InMemoryCachingStrategy
Returns
Overrides
Source
caching/InMemoryCachingStrategy.ts:5
Methods
get()
get<
T
>(cacheKey
):Promise
<null
|T
&ICachable
>
Type parameters
• T
Parameters
• cacheKey: string
Returns
Promise
<null
| T
& ICachable
>
Inherited from
Source
getOrCreate()
getOrCreate<
T
>(cacheKey
,createFunction
,updateFunction
?):Promise
<T
&ICachable
>
Type parameters
• T
Parameters
• cacheKey: string
• createFunction
• updateFunction?
Returns
Promise
<T
& ICachable
>
Inherited from
Source
remove()
remove(
cacheKey
):Promise
<void
>
Parameters
• cacheKey: string
Returns
Promise
<void
>
Inherited from
Source
set()
set(
cacheKey
,value
,expiresIn
):Promise
<void
>
Parameters
• cacheKey: string
• value: object
• expiresIn: number
Returns
Promise
<void
>
Inherited from
Source
setCacheItem()
setCacheItem(
cacheKey
,cacheItem
):Promise
<void
>
Parameters
• cacheKey: string
• cacheItem: ICachable
Returns
Promise
<void
>