1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-31 05:04:23 +03:00

Context methods only for go1.7+

This commit is contained in:
Sukharev Maxim
2017-01-13 11:11:07 +07:00
parent 2f247ebe83
commit b9ab636be4
3 changed files with 51 additions and 28 deletions

15
redis_no_context.go Normal file
View File

@ -0,0 +1,15 @@
// +build !go1.7
package redis
import (
"gopkg.in/redis.v5/internal/pool"
)
type baseClient struct {
connPool pool.Pooler
opt *Options
process func(Cmder) error
onClose func() error // hook called when client is closed
}