mirror of
https://github.com/gofiber/storage.git
synced 2025-10-05 08:37:10 +08:00
Create a testStore per test
This commit is contained in:
@@ -121,12 +121,12 @@ func (s *Storage) Conn() redis.UniversalClient {
|
||||
func (s *Storage) Keys() ([][]byte, error) {
|
||||
var keys [][]byte
|
||||
var cursor uint64
|
||||
var err error
|
||||
|
||||
for {
|
||||
var batch []string
|
||||
var err error
|
||||
batch, cursor, err = s.db.Scan(context.Background(), cursor, "*", 10).Result()
|
||||
if err != nil {
|
||||
|
||||
if batch, cursor, err = s.db.Scan(context.Background(), cursor, "*", 10).Result(); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user