UNPKG

@shaaz1000/rn-storage

Version:

A comprehensive storage solution for React Native with encryption, caching, and offline sync

14 lines 416 B
interface UseCacheOptions { expiryTime?: number; encryptData?: boolean; } export declare function useCache<T>(key: string, initialValue: T, options?: UseCacheOptions): { value: T; setCache: (newValue: T) => Promise<void>; removeFromCache: () => Promise<void>; clearCache: () => Promise<void>; loading: boolean; error: Error | null; }; export {}; //# sourceMappingURL=useCache.d.ts.map