UNPKG

ng2-cache-service

Version:
16 lines (15 loc) 598 B
import { CacheStorageAbstract } from '../cache-storage-abstract.service'; import { CacheStoragesEnum } from '../../../enums/cache-storages.enum'; import { StorageValueInterface } from '../../../interfaces/storage-value.interface'; /** * Service for storing data in local storage */ export declare class CacheMemoryStorage extends CacheStorageAbstract { private _data; getItem(key: string): any; setItem(key: string, value: StorageValueInterface): boolean; removeItem(key: string): void; clear(): void; type(): CacheStoragesEnum; isEnabled(): boolean; }