MCPcopy
hub / github.com/fosrl/pangolin / keysWithPrefix

Method keysWithPrefix

server/lib/cache.ts:163–166  ·  view source on GitHub ↗

* Get keys with a specific prefix * @param prefix - Key prefix to match * @returns Array of matching keys

(prefix: string)

Source from the content-addressed store, hash-verified

161 * @returns Array of matching keys
162 */
163 async keysWithPrefix(prefix: string): Promise<string[]> {
164 const allKeys = localCache.keys();
165 return allKeys.filter((key) => key.startsWith(prefix));
166 }
167}
168
169// Export singleton instance

Callers 1

Calls 1

keysMethod · 0.45

Tested by

no test coverage detected