UNPKG

@ngx-toolkit/cache

Version:

Angular cache with Universal support

11 lines (10 loc) 310 B
import { Cache } from '../cache.model'; export declare class StorageCache implements Cache { readonly name: string; private storage; constructor(name: string, storage: Storage); clear(): void; evict(key: string): void; get<T>(key: string): T; put<T>(key: string, value: T): void; }