From f7b907b40bf7f50f22e16bcd7921057e2afa9825 Mon Sep 17 00:00:00 2001 From: "doubleycn@qq.com" Date: Wed, 1 Jul 2020 16:19:46 +0800 Subject: [PATCH] fix bug https://github.com/micro/go-plugins/issues/565 (#569) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix bug https://github.com/micro/go-plugins/issues/565 * del Redundant code Co-authored-by: 杨羽 --- redis.go | 1 - 1 file changed, 1 deletion(-) diff --git a/redis.go b/redis.go index e64c5a2..feffe62 100644 --- a/redis.go +++ b/redis.go @@ -40,7 +40,6 @@ func (r *rkv) Read(key string, opts ...store.ReadOption) ([]*store.Record, error // TODO suffix if options.Prefix { prefix_key := fmt.Sprintf("%s*", rkey) - r.Client.Keys(key) fkeys, err := r.Client.Keys(prefix_key).Result() if err != nil { return nil, err