Skip to main content

CacheEntryService

Properties

(Mandatory properties are in bold)
PropertiesTypeDescription
callSagacallSaga(sagaName: string,args: any[]): void
constructornew CacheEntryService<T>()
contextAppContext
delayLoadingdelayLoading(key: string,delay_ms: number): void
fetchfetch(url: string,options: CacheOptions<T>,force: boolean): voidGet the object from the server and save it in the cache (= redux store)
setCachesetCache(key: string,cacheEntry: CacheEntry<T>): voidSave the object to cache in the redux store
Several metadata are atttached to the object (expireAt, loading, fetching)
setErrorsetError(key: string,error: BasicError): void
setLoadingsetLoading(key: string,loading: boolean,fetching: boolean): void
stateAnyState