MCPcopy Create free account
hub / github.com/OpenListTeam/OpenList / Set

Method Set

internal/cache/keyed_cache.go:23–25  ·  view source on GitHub ↗
(key string, value T)

Source from the content-addressed store, hash-verified

21}
22
23func (c *KeyedCache[T]) Set(key string, value T) {
24 c.SetWithExpirable(key, value, ExpirationTime(time.Now().Add(c.ttl)))
25}
26
27func (c *KeyedCache[T]) SetWithTTL(key string, value T, ttl time.Duration) {
28 c.SetWithExpirable(key, value, ExpirationTime(time.Now().Add(ttl)))

Callers 15

GetArchiveMetaFunction · 0.45
ListArchiveFunction · 0.45
SetUserMethod · 0.45
SetSettingMethod · 0.45
SetSettingGroupMethod · 0.45
getMetaByPathFunction · 0.45
GetTasksMethod · 0.45
GetTasksExpertMethod · 0.45
RunMethod · 0.45
GetTasksMethod · 0.45
GetTasksMethod · 0.45
GetTasksMethod · 0.45

Calls 4

SetWithExpirableMethod · 0.95
ExpirationTimeTypeAlias · 0.85
AddMethod · 0.65
NowMethod · 0.65

Tested by 1

newDownloadRangeClientFunction · 0.36