UNPKG

neura-sdk

Version:

TypeScript SDK for interacting with the Neura AI API

13 lines (12 loc) 425 B
import { CacheInterface, CacheOptions } from '../types'; export declare class MemoryCache implements CacheInterface { private cache; private defaultTTL; constructor(defaultTTL?: number); get<T>(key: string): T | undefined; set<T>(key: string, value: T, options?: Partial<CacheOptions>): void; has(key: string): boolean; delete(key: string): boolean; clear(): void; private cleanExpired; }