Files
website/node_modules/@algolia/cache-browser-local-storage/dist/cache-browser-local-storage.d.ts
2024-05-06 17:15:30 -04:00

32 lines
716 B
TypeScript

import { Cache as Cache_2 } from '@algolia/cache-common';
export declare type BrowserLocalStorageCacheItem = {
/**
* The cache item creation timestamp.
*/
readonly timestamp: number;
/**
* The cache item value
*/
readonly value: any;
};
export declare type BrowserLocalStorageOptions = {
/**
* The cache key.
*/
readonly key: string;
/**
* The time to live for each cached item in seconds.
*/
readonly timeToLive?: number;
/**
* The native local storage implementation.
*/
readonly localStorage?: Storage;
};
export declare function createBrowserLocalStorageCache(options: BrowserLocalStorageOptions): Cache_2;
export { }