UNPKG

mushcode-mcp-server

Version:

A specialized Model Context Protocol server for MUSHCODE development assistance. Provides AI-powered code generation, validation, optimization, and examples for MUD development.

28 lines 811 B
/** * Simple caching utilities for performance optimization */ export interface SimpleCacheEntry<T> { value: T; timestamp: number; ttl?: number; } export declare class SimpleCache<T> { private cache; private maxSize; private defaultTtl?; constructor(maxSize?: number, defaultTtl?: number); get(key: string): T | undefined; set(key: string, value: T, ttl?: number): void; has(key: string): boolean; delete(key: string): boolean; clear(): void; size(): number; } export declare class SimpleCacheManager { private caches; getCache<T>(name: string, maxSize?: number, defaultTtl?: number): SimpleCache<T>; clearAll(): void; destroy(): void; } export declare const simpleCacheManager: SimpleCacheManager; //# sourceMappingURL=simple-cache.d.ts.map