2019-08-05 22:04:27 +00:00
|
|
|
package redis
|
|
|
|
|
|
2024-04-10 12:58:37 +00:00
|
|
|
import "github.com/redis/go-redis/v9"
|
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
|
|
|
|
|
}
|
|
|
|
|
}
|