ng2-cache-service
Version:
Client side caching service for Angular2
16 lines (15 loc) • 598 B
TypeScript
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;
}