How about changing `redis.Pool` to interface?
ehnuje opened this issue · comments
As we use Redis cluster in our development, we're using redisc package to handle Redis cluster. But, as gocraft/work only receives *redis.Pool
struct as a parameter, redisc
can't be passed. It can be done by changing the usages of redis.Pool
to an interface.
Or do you know anything about using Redis cluster of raidss with gocraft/work?
https://pkg.go.dev/github.com/taylorchu/work?tab=doc#NewRedisQueue
If you can use v2, please do so. It uses https://pkg.go.dev/github.com/go-redis/redis?tab=doc#UniversalClient, which includes sentinal and cluster.