MCPcopy Create free account
hub / github.com/MicrosoftDocs/mcp / constructor

Method constructor

cli/src/mcp/cache.ts:50–54  ·  view source on GitHub ↗
(options: FileLearnSessionCacheStoreOptions)

Source from the content-addressed store, hash-verified

48 private readonly now: () => number;
49
50 constructor(options: FileLearnSessionCacheStoreOptions) {
51 this.cacheFilePath = options.cacheFilePath ?? getDefaultCacheFilePath();
52 this.ttlMs = options.ttlMs ?? DEFAULT_CACHE_TTL_MS;
53 this.now = options.now ?? Date.now;
54 }
55
56 async read(endpoint: string): Promise<LearnSessionCacheValue | undefined> {
57 const normalizedEndpoint = normalizeEndpoint(endpoint);

Callers

nothing calls this directly

Calls 1

getDefaultCacheFilePathFunction · 0.85

Tested by

no test coverage detected