MCPcopy Index your code
hub / github.com/go-dev-frame/sponge / GetUserExampleCacheKey

Method GetUserExampleCacheKey

internal/cache/userExample.go:65–67  ·  view source on GitHub ↗

GetUserExampleCacheKey cache key

(id uint64)

Source from the content-addressed store, hash-verified

63
64// GetUserExampleCacheKey cache key
65func (c *userExampleCache) GetUserExampleCacheKey(id uint64) string {
66 return userExampleCachePrefixKey + utils.Uint64ToStr(id)
67}
68
69// Set write to cache
70func (c *userExampleCache) Set(ctx context.Context, id uint64, data *model.UserExample, duration time.Duration) error {

Callers 6

SetMethod · 0.95
GetMethod · 0.95
MultiSetMethod · 0.95
MultiGetMethod · 0.95
DelMethod · 0.95
SetPlaceholderMethod · 0.95

Calls 1

Uint64ToStrFunction · 0.92

Tested by

no test coverage detected