MCPcopy Index your code
hub / github.com/apache/answer / getCache

Method getCache

plugin/kv_storage.go:118–125  ·  view source on GitHub ↗
(ctx context.Context, params KVParams)

Source from the content-addressed store, hash-verified

116}
117
118func (kv *KVOperator) getCache(ctx context.Context, params KVParams) (string, bool, error) {
119 if kv.cacheTTL < 0 {
120 return "", false, nil
121 }
122
123 cacheKey := kv.getCacheKey(params)
124 return kv.data.Cache.GetString(ctx, cacheKey)
125}
126
127func (kv *KVOperator) cleanCache(ctx context.Context, params KVParams) {
128 if kv.cacheTTL < 0 {

Callers 1

GetMethod · 0.95

Calls 2

getCacheKeyMethod · 0.95
GetStringMethod · 0.80

Tested by

no test coverage detected