MCPcopy Create free account
hub / github.com/devfeel/dotweb / Set

Method Set

cache/cache.go:20–20  ·  view source on GitHub ↗

Set cache value by given key

(key string, v interface{}, ttl int64)

Source from the content-addressed store, hash-verified

18 GetInt64(key string) (int64, error)
19 // Set cache value by given key
20 Set(key string, v interface{}, ttl int64) error
21 // Incr increases int64-type value by given key as a counter
22 // if key not exist, before increase set value with zero
23 Incr(key string) (int64, error)

Callers 15

ServeHTTPMethod · 0.65
ServeHTTPMethod · 0.65
wrapRouterHandleMethod · 0.65
IndexFunction · 0.65
HandleMethod · 0.65
UseMethod · 0.65
DefaultNotFoundHandlerFunction · 0.65
resetMethod · 0.65
AddViewMethod · 0.65

Implementers 2

RuntimeCachecache/runtime/cache_runtime.go
RedisCachecache/redis/cache_redis.go

Calls

no outgoing calls

Tested by 7

IndexFunction · 0.52
DoSetFunction · 0.52
TestRedisClient_SetFunction · 0.52
TestRedisClient_DelFunction · 0.52
TestRedisClient_ExistsFunction · 0.52
TestRedisClient_ExpireFunction · 0.52