synaptra
Version:
A high-performance Model Context Protocol server for GraphQL APIs with advanced features, type-safety, and developer experience improvements
16 lines • 557 B
TypeScript
export declare class CacheService {
private cache;
private defaultTtl;
constructor(maxSize?: number, defaultTtl?: number);
set<T>(key: string, value: T, ttl?: number): void;
get<T>(key: string): T | null;
has(key: string): boolean;
delete(key: string): void;
clear(): void;
size(): number;
keys(): string[];
static generateSchemaKey(endpoint: string): string;
static generateQueryKey(query: string, variables?: Record<string, any>): string;
private static simpleHash;
}
//# sourceMappingURL=cache.d.ts.map