MCPcopy
hub / github.com/apache/answer / getCacheKey

Method getCacheKey

plugin/kv_storage.go:98–100  ·  view source on GitHub ↗
(params KVParams)

Source from the content-addressed store, hash-verified

96}
97
98func (kv *KVOperator) getCacheKey(params KVParams) string {
99 return fmt.Sprintf("plugin_kv_storage:%s:group:%s:key:%s", kv.pluginSlugName, params.Group, params.Key)
100}
101
102func (kv *KVOperator) setCache(ctx context.Context, params KVParams) {
103 if kv.cacheTTL < 0 {

Callers 3

setCacheMethod · 0.95
getCacheMethod · 0.95
cleanCacheMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected