Explorar el Código

更新 'redis.go'

golang hace 3 años
padre
commit
ccdb938711
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      redis.go

+ 1 - 1
redis.go

@@ -45,7 +45,7 @@ func (i *redisIterator) Next() bool {
 }
 
 func (i *redisIterator) Key() string {
-	return i.key
+	return strings.TrimPrefix(i.key,"kv:db$:")
 }
 
 func (i *redisIterator) Value() []byte {