Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
speedLimit
Function · 0.80
Calls
1
get
Method · 0.45
Tested by
no test coverage detected