MCPcopy Create free account
hub / github.com/MCSManager/MCSManager / ttl

Method ttl

panel/src/app/service/mini_redis.ts:37–43  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

35 }
36
37 ttl(key: string) {
38 const data = this.envMap.get(key);
39 if (!data) return 0;
40 const ttl = data.ttl - Date.now();
41 if (ttl <= 0) return 0;
42 return parseInt(String(ttl / 1000));
43 }
44}
45
46// singleton

Callers 1

speedLimitFunction · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected