2019-08-05 22:04:27 +00:00
|
|
|
package redis
|
|
|
|
|
|
2020-07-22 03:27:03 +00:00
|
|
|
import redis "github.com/go-redis/redis/v8"
|
2019-08-05 22:04:27 +00:00
|
|
|
|
|
|
|
|
// Option is used to override defaults when creating a new Redis checkpoint
|
|
|
|
|
type Option func(*Checkpoint)
|
|
|
|
|
|
|
|
|
|
// WithClient overrides the default client
|
|
|
|
|
func WithClient(client *redis.Client) Option {
|
|
|
|
|
return func(c *Checkpoint) {
|
|
|
|
|
c.client = client
|
|
|
|
|
}
|
|
|
|
|
}
|