MCPcopy
hub / github.com/koderover/zadig / Cacher

Interface Cacher

pkg/handler/cache/interface.go:21–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19import "github.com/gin-gonic/gin"
20
21type Cacher interface {
22 // Get gets data based on `key`.
23 Get(key string) (value interface{}, exists bool)
24
25 // Set sets data `key:values`.
26 Set(key string, value interface{})
27
28 // Delete deletes data based on `key`.
29 Delete(key string)
30
31 // List lists all of data.
32 List() map[string]interface{}
33
34 // Purge purges all of data.
35 Purge()
36}
37
38type CacheHandler interface {
39 // Get is a gin handler that gets cache data.

Callers 26

getMigrationFieldBsonTagFunction · 0.65
RequestJobMethod · 0.65
GetFunction · 0.65
DownloadFunction · 0.65
buildPlaceholderDataFunction · 0.65
WithContextFunction · 0.65
GetStringMethod · 0.65
ListAppMethod · 0.65
RequestIDFunction · 0.65
GetCaptchaFunction · 0.65

Implementers 3

cacheStorepkg/handler/cache/cache.go
handlerspkg/handler/cache/handler.go
redisCacheStorepkg/handler/cache/redis_cache.go

Calls

no outgoing calls

Tested by

no test coverage detected