Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/1Panel-dev/1Panel
/ SetWithTTL
Method
SetWithTTL
agent/init/cache/db/db.go:24–26 ·
view source on GitHub ↗
(key string, value interface{}, d time.Duration)
Source
from the content-addressed store, hash-verified
22
}
23
24
func
(c *Cache) SetWithTTL(key string, value
interface
{}, d time.Duration) {
25
c.db.Set(key, value, d)
26
}
27
func
(c *Cache) Del(key string) {
28
c.db.Delete(key)
29
}
Callers
1
SaveProcess
Method · 0.80
Calls
1
Set
Method · 0.45
Tested by
no test coverage detected