aifordiscord-api
Version:
An advanced npm package for Discord bots providing AI-enhanced random content, memes, jokes, and utilities with comprehensive documentation.
15 lines • 409 B
TypeScript
/**
* Simple in-memory cache implementation
*/
export declare class SimpleCache {
private cache;
private defaultTTL;
constructor(defaultTTL?: number);
set<T>(key: string, data: T, ttl?: number): void;
get<T>(key: string): T | null;
has(key: string): boolean;
delete(key: string): boolean;
clear(): void;
private startCleanupInterval;
}
//# sourceMappingURL=cache.d.ts.map