CacheService
@appfire/fuse-http-client • Docs
@appfire/fuse-http-client / CacheService
Class: CacheService
Constructors
new CacheService()
new CacheService():
CacheService
Returns
Methods
clearCache()
static
clearCache(key
):void
Parameters
• key: string
Returns
void
Defined in
getData()
static
getData\<T
>(key
,duration
,getDataFunction
):Promise
\<T
>
Type Parameters
• T
Parameters
• key: string
• duration: number
• getDataFunction
Returns
Promise
\<T
>
Defined in
setData()
static
setData\<T
>(key
,data
,duration
):void
Type Parameters
• T
Parameters
• key: string
• data: T
• duration: number
Returns
void