Skip to content

AppCacheService

injectable

Service for saving or caching data on the users device. It uses the most efficient storage available (IndexDB, localstorage, …) on the device. Depending on the type of storage used, its limitations apply.

clear(filter: function): Observable<boolean>
NameTypeDescription
filterfunction
getItem(key: string): Observable<any>
NameTypeDescription
keystring
getStorageKeys(): Observable<string[]>
removeItem(key: string): Observable<boolean>
NameTypeDescription
keystring
setItem(key: string, value: any): Observable<boolean>
NameTypeDescription
keystring
valueany
setStorage(options: any): Observable<any>
NameTypeDescription
optionsany