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

Method set

panel/src/app/service/mini_redis.ts:30–35  ·  view source on GitHub ↗
(key: string, value: T, ttl: number = 0)

Source from the content-addressed store, hash-verified

28 }
29
30 set<T = any>(key: string, value: T, ttl: number = 0) {
31 this.envMap.set(key, {
32 value,
33 ttl: Date.now() + ttl * 1000
34 });
35 }
36
37 ttl(key: string) {
38 const data = this.envMap.get(key);

Callers 15

initVersionManagerFunction · 0.45
execWithMutexFunction · 0.45
execWithMutexIdFunction · 0.45
permission.tsFile · 0.45
speedLimitFunction · 0.45
middlewareFunction · 0.45
loginFunction · 0.45
checkBanIpFunction · 0.45
emitCountEventMethod · 0.45
buildAuthorizationUrlFunction · 0.45
multiOperationForwardingFunction · 0.45
setCacheMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected