Skip to main content
Glama

Memory Cache Server

by tosin2013
import { CacheStats, CacheConfig } from './types.js'; export declare class CacheManager { private cache; private stats; private config; private cleanupInterval; private statsUpdateInterval; constructor(config?: CacheConfig); set(key: string, value: any, ttl?: number): void; get(key: string): any; delete(key: string): boolean; clear(): void; getStats(): CacheStats; private isExpired; private evictStale; private enforceMemoryLimit; private calculateSize; private updateHitRate; private updateAccessTime; private resetStats; private updateStats; destroy(): void; }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/tosin2013/mcp-memory-cache-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server