MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / clearGlobalLruCache

Function clearGlobalLruCache

packages/redis/cachable.ts:61–67  ·  view source on GitHub ↗
(key?: string)

Source from the content-addressed store, hash-verified

59
60// Helper functions for managing global LRU cache
61export function clearGlobalLruCache(key?: string) {
62 if (key) {
63 return globalLruCache.delete(key);
64 }
65 globalLruCache.clear();
66 return true;
67}
68
69export function getGlobalLruCacheStats() {
70 return {

Callers

nothing calls this directly

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected