UNPKG

@aivron/sync-storage

Version:

A universal, synchronous storage solution for React (web & desktop) with support for core operations, bulk actions, JSON, TTL, and React hooks. For React Native, use @aivron/async-storage.

4 lines (3 loc) 253 B
import { StorageType } from "./core"; export declare function setStorageItemWithTTL(key: string, value: string, ttl: number, storage?: StorageType): void; export declare function getStorageItemWithTTL(key: string, storage?: StorageType): string | null;