UNPKG

psgc-mcp

Version:

Philippine Standard Geographic Code MCP Server - provides hierarchical geographic data for the Philippines

52 lines 1.15 kB
import { CacheConfig } from '../types/index.js'; /** * Cache service for storing API responses */ export declare class CacheService { private memoryCache; private config; private cacheDir; constructor(config: CacheConfig); /** * Initialize cache directory */ initialize(): Promise<void>; /** * Generate cache key */ private generateKey; /** * Check if cache entry is valid */ private isValid; /** * Get data from cache */ get<T>(key: string): Promise<T | null>; /** * Store data in cache */ set<T>(key: string, data: T): Promise<void>; /** * Remove specific cache entry */ remove(key: string): Promise<void>; /** * Clear all cache entries */ clear(): Promise<void>; /** * Clean up expired cache entries */ cleanup(): Promise<void>; /** * Get cache statistics */ getStats(): Promise<{ memoryEntries: number; diskEntries: number; totalSize: number; }>; } export declare const cacheService: CacheService; //# sourceMappingURL=cache.service.d.ts.map