Skip to main content

CacheService

@appfire/fuse-http-clientDocs


@appfire/fuse-http-client / CacheService

Class: CacheService

Constructors

new CacheService()

new CacheService(): CacheService

Returns

CacheService

Methods

clearCache()

static clearCache(key): void

Parameters

key: string

Returns

void

Defined in

helpers/cache.helpers.ts:35


getData()

static getData\<T>(key, duration, getDataFunction): Promise\<T>

Type Parameters

T

Parameters

key: string

duration: number

getDataFunction

Returns

Promise\<T>

Defined in

helpers/cache.helpers.ts:6


setData()

static setData\<T>(key, data, duration): void

Type Parameters

T

Parameters

key: string

data: T

duration: number

Returns

void

Defined in

helpers/cache.helpers.ts:27