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.
Methods
Section titled “Methods”clear(filter: function): Observable<boolean>Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
| filter | function |
getItem
Section titled “getItem”getItem(key: string): Observable<any>Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
| key | string |
getStorageKeys
Section titled “getStorageKeys”getStorageKeys(): Observable<string[]>removeItem
Section titled “removeItem”removeItem(key: string): Observable<boolean>Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
| key | string |
setItem
Section titled “setItem”setItem(key: string, value: any): Observable<boolean>Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
| key | string | |
| value | any |
setStorage
Section titled “setStorage”setStorage(options: any): Observable<any>Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
| options | any |