(ctx context.Context, params KVParams)
| 125 | } |
| 126 | |
| 127 | func (kv *KVOperator) cleanCache(ctx context.Context, params KVParams) { |
| 128 | if kv.cacheTTL < 0 { |
| 129 | return |
| 130 | } |
| 131 | |
| 132 | if err := kv.data.Cache.Del(ctx, kv.getCacheKey(params)); err != nil { |
| 133 | log.Warnf("Failed to delete cache for key %s: %v", params.Key, err) |
| 134 | } |
| 135 | } |
| 136 | |
| 137 | // Get retrieves a value from KV storage by group and key. |
| 138 | // Returns the value as a string or an error if the key is not found. |
no test coverage detected