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:
15
redis_no_context.go
Normal file
15
redis_no_context.go
Normal 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
|
||||
}
|
Reference in New Issue
Block a user