UNPKG

@ngx-cache/fs-storage

Version:
27 lines (26 loc) 867 B
import { Storage } from '@ngx-cache/core'; import { FsStorageLoader } from './fs-storage.loader'; import * as i0 from "@angular/core"; export declare class FsStorageService extends Storage { readonly loader: FsStorageLoader; length: number; keys: Array<string>; private readonly instances; private readonly path; private readonly quota; private readonly pid; private metadata; private bytesUsed; constructor(loader: FsStorageLoader); setItem(key: string, value: any): boolean; getItem(key: string): any; removeItem(key: string): boolean; key(index: number): any; clear(): boolean; private getStats; private deleteDirectory; private deletePath; private deleteInstance; static ɵfac: i0.ɵɵFactoryDef<FsStorageService, never>; static ɵprov: i0.ɵɵInjectableDef<FsStorageService>; }