A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.
fix(plugin): set params.Value in Get method to ensure correct value retrieval
Sonuid866ca71e1b0
diff --git a/plugin/kv_storage.go b/plugin/kv_storage.goindex 9b449f8f..d1ed3eaa 100644--- a/plugin/kv_storage.go+++ b/plugin/kv_storage.go@@ -164,6 +164,7 @@ func (kv *KVOperator) Get(ctx context.Context, params KVParams) (string, error)return "", ErrKVKeyNotFound}+ params.Value = data.Valuekv.setCache(ctx, params)return data.Value, nil