Skip to main content
Glama
dstreefkerk

ms-sentinel-mcp-server

by dstreefkerk
cache.py524 B
from threading import RLock from cachetools import TTLCache class Cache: def __init__(self, ttl=600, max_size=1024): self._cache = TTLCache(maxsize=max_size, ttl=ttl) self._lock = RLock() def get(self, key): with self._lock: return self._cache.get(key, None) def set(self, key, value): with self._lock: self._cache[key] = value def clear(self): with self._lock: self._cache.clear() # Singleton cache instance cache = Cache()

Latest Blog Posts

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/dstreefkerk/ms-sentinel-mcp-server'

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