UNPKG

hybrid-webcache

Version:

Hybrid WebCache - A library that combines `localStorage`, `IndexedDB`, `SessionStorage` and `Memory` to provide a high-performance hybrid cache with multi-instance synchronization support.

8 lines (7 loc) 289 B
import { type StorageBase, StorageEngine } from "./types"; /** @ignore */ declare class StorageFactory { createStorage(type: StorageEngine, baseName: string, storeName?: string): StorageBase; } declare const storageFactory: StorageFactory; export { storageFactory as StorageFactory };