(ctx context.Context, params KVParams)
| 116 | } |
| 117 | |
| 118 | func (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 | |
| 127 | func (kv *KVOperator) cleanCache(ctx context.Context, params KVParams) { |
| 128 | if kv.cacheTTL < 0 { |
no test coverage detected