kinesis-consumer/store/redis/options.go

14 lines
312 B
Go
Raw Permalink Normal View History

package redis
2023-06-16 18:20:07 +00:00
import redis "github.com/go-redis/redis/v9"
// 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
}
}