UNPKG

@putdotio/pas-js

Version:

Client-side JS client for Putio Analytics System

12 lines (11 loc) 397 B
export interface IPutioAnalyticsCacheOptions { domain: string; expires: number; } declare const createCache: <T extends object>(options: IPutioAnalyticsCacheOptions) => { set: (key: string, value: T) => T; get: (key: string) => T; clear: (key: string) => void; }; export declare type PutioAnalyticsCache = ReturnType<typeof createCache>; export default createCache;