13 lines
312 B
Go
13 lines
312 B
Go
package redis
|
|
|
|
import redis "github.com/go-redis/redis/v8"
|
|
|
|
// 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
|
|
}
|
|
}
|