MCPcopy
hub / github.com/bluele/gcache / Set

Method Set

cache.go:20–20  ·  view source on GitHub ↗
(key, value interface{})

Source from the content-addressed store, hash-verified

18
19type Cache interface {
20 Set(key, value interface{}) error
21 SetWithExpire(key, value interface{}, expiration time.Duration) error
22 Get(key interface{}) (interface{}, error)
23 GetIFPresent(key interface{}) (interface{}, error)

Callers 7

testSetCacheFunction · 0.65
setItemsByRangeFunction · 0.65
testExpiredItemsFunction · 0.65
TestCacheStatsFunction · 0.65
TestLFUFreqListOrderFunction · 0.65
TestLFUFreqListLengthFunction · 0.65
TestDeserializeFuncFunction · 0.65

Implementers 4

LRUCachelru.go
SimpleCachesimple.go
ARCarc.go
LFUCachelfu.go

Calls

no outgoing calls

Tested by 7

testSetCacheFunction · 0.52
setItemsByRangeFunction · 0.52
testExpiredItemsFunction · 0.52
TestCacheStatsFunction · 0.52
TestLFUFreqListOrderFunction · 0.52
TestLFUFreqListLengthFunction · 0.52
TestDeserializeFuncFunction · 0.52