From 1c28ee0a67409adeea434ff7366f62b20af43642 Mon Sep 17 00:00:00 2001 From: DanB Date: Wed, 25 Nov 2015 12:17:11 +0100 Subject: [PATCH] Fix redis GetKeysForPrefix --- engine/storage_redis.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/storage_redis.go b/engine/storage_redis.go index 68db72adc..fe05e1c86 100644 --- a/engine/storage_redis.go +++ b/engine/storage_redis.go @@ -82,7 +82,7 @@ func (rs *RedisStorage) Flush(ignore string) error { } func (rs *RedisStorage) GetKeysForPrefix(prefix string) ([]string, error) { - r := rs.db.Cmd("KEYS", "*") + r := rs.db.Cmd("KEYS", prefix+"*") if r.Err != nil { return nil, r.Err }