@pscoped/ng2-cache
Version:
> ng2-cache library compatible with AoT compilation & Tree shaking like an official package.
19 lines (18 loc) • 761 B
TypeScript
import { CacheStorageAbstract } from '../cache-storage-abstract.service';
import { CacheStoragesEnum } from '../../../enums/cache-storages.enum';
import { StorageValueInterface } from '../../../interfaces/storage-value.interface';
import * as i0 from "@angular/core";
/**
* 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;
static ɵfac: i0.ɵɵFactoryDeclaration<CacheMemoryStorage, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<CacheMemoryStorage>;
}