MCPcopy
hub / github.com/silenceper/wechat / Cache

Interface Cache

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

Cache interface

Source from the content-addressed store, hash-verified

7
8// Cache interface
9type Cache interface {
10 Get(key string) interface{}
11 Set(key string, val interface{}, timeout time.Duration) error
12 IsExist(key string) bool
13 Delete(key string) error
14}
15
16// ContextCache interface
17type ContextCache interface {

Callers 22

GetMethod · 0.65
IsExistMethod · 0.65
GetContextFunction · 0.65
TestRedisFunction · 0.65
GetTicketContextMethod · 0.65
GetTicketMethod · 0.65
GetAccessTokenContextMethod · 0.65
GetAccessTokenContextMethod · 0.65
SetMethod · 0.65
SetContextFunction · 0.65
TestRedisFunction · 0.65
GetTicketContextMethod · 0.65

Implementers 3

Memcachecache/memcache.go
Rediscache/redis.go
Memorycache/memory.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…