@pscoped/ng2-cache
Version:
> ng2-cache library compatible with AoT compilation & Tree shaking like an official package.
18 lines (17 loc) • 747 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 session storage
*/
export declare class CacheSessionStorage extends CacheStorageAbstract {
getItem(key: string): any;
setItem(key: string, value: StorageValueInterface): boolean;
removeItem(key: string): void;
clear(): void;
type(): CacheStoragesEnum;
isEnabled(): boolean;
static ɵfac: i0.ɵɵFactoryDeclaration<CacheSessionStorage, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<CacheSessionStorage>;
}