MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / Set

Method Set

agent/init/cache/db/db.go:20–22  ·  view source on GitHub ↗
(key string, value interface{})

Source from the content-addressed store, hash-verified

18}
19
20func (c *Cache) Set(key string, value interface{}) {
21 c.db.Set(key, value, cache.DefaultExpiration)
22}
23
24func (c *Cache) SetWithTTL(key string, value interface{}, d time.Duration) {
25 c.db.Set(key, value, d)

Callers 15

SetWithTTLMethod · 0.45
SaveProcessMethod · 0.45
SendMessageFunction · 0.45
chatCompletionOpenAIMethod · 0.45
chatCompletionGeminiMethod · 0.45
HandleRequestFunction · 0.45
HandleRequestWithClientFunction · 0.45
HandleRequestWithHeadersFunction · 0.45
RequestFileFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected