MCPcopy 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
24func (c *Cache) SetWithTTL(key string, value interface{}, d time.Duration) {
25 c.db.Set(key, value, d)
26}
27func (c *Cache) Del(key string) {
28 c.db.Delete(key)
29}

Callers 1

SaveProcessMethod · 0.80

Calls 1

SetMethod · 0.45

Tested by

no test coverage detected