MCPcopy Create free account
hub / github.com/go-dev-frame/sponge / getCacheKey

Method getCacheKey

internal/cache/cacheNameExample.go:63–65  ·  view source on GitHub ↗

cache key

(keyNameExample keyTypeExample)

Source from the content-addressed store, hash-verified

61
62// cache key
63func (c *cacheNameExampleCache) getCacheKey(keyNameExample keyTypeExample) string {
64 return fmt.Sprintf("%s%v", cacheNameExampleCachePrefixKey, keyNameExample)
65}
66
67// Set cache
68func (c *cacheNameExampleCache) Set(ctx context.Context, keyNameExample keyTypeExample, valueNameExample valueTypeExample, duration time.Duration) error {

Callers 3

SetMethod · 0.95
GetMethod · 0.95
DelMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected