mirror of
https://github.com/redis/go-redis.git
synced 2025-07-28 06:42:00 +03:00
Add FlushDBAsync and FlushAllAsync
This commit is contained in:
@ -16,7 +16,7 @@ func benchmarkRedisClient(poolSize int) *redis.Client {
|
||||
WriteTimeout: time.Second,
|
||||
PoolSize: poolSize,
|
||||
})
|
||||
if err := client.FlushDb().Err(); err != nil {
|
||||
if err := client.FlushDB().Err(); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
return client
|
||||
|
Reference in New Issue
Block a user