1
0
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:
Vladimir Mihailenco
2017-06-17 12:53:16 +03:00
parent 167410bcd7
commit f1ed2ad288
15 changed files with 43 additions and 22 deletions

View File

@ -20,7 +20,7 @@ func init() {
PoolSize: 10,
PoolTimeout: 30 * time.Second,
})
client.FlushDb()
client.FlushDB()
}
func ExampleNewClient() {
@ -147,7 +147,7 @@ func ExampleClient_BLPop() {
}
func ExampleClient_Scan() {
client.FlushDb()
client.FlushDB()
for i := 0; i < 33; i++ {
err := client.Set(fmt.Sprintf("key%d", i), "value", 0).Err()
if err != nil {