UNPKG

opendash

Version:

open.DASH data visualization framework

18 lines (17 loc) 688 B
import { AppInterface, BaseService, StorageAdapterInterface, StorageOptionsInterface } from ".."; export declare class StorageService extends BaseService { private app; private services; private adapter; private context; private storage; private cache; constructor(app: AppInterface, adapter: StorageAdapterInterface); get<T>(key: string): Promise<T>; set<T>(key: string, value: T, options?: StorageOptionsInterface<T>): Promise<void>; delete(key: string): Promise<void>; keys(): Promise<string[]>; clear(): Promise<void>; _getSync<T>(key: string, options?: StorageOptionsInterface<T>): T; _keysSync(): string[]; }