1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-28 06:42:00 +03:00

Use bufio.Writer

This commit is contained in:
Vladimir Mihailenco
2018-08-17 13:56:37 +03:00
parent 1874269be2
commit 0197108027
15 changed files with 334 additions and 506 deletions

View File

@ -20,7 +20,7 @@ func init() {
PoolSize: 10,
PoolTimeout: 30 * time.Second,
})
redisdb.FlushDB()
// redisdb.FlushDB()
}
func ExampleNewClient() {
@ -206,7 +206,7 @@ func ExampleClient_Scan() {
for {
var keys []string
var err error
keys, cursor, err = redisdb.Scan(cursor, "", 10).Result()
keys, cursor, err = redisdb.Scan(cursor, "key*", 10).Result()
if err != nil {
panic(err)
}