Use the redis.UniversalClient interface instead of *redis.Client when interacting with go-redis (#1149)

* Use the redis.UniversalClient interface instead of *redis.Client when interacting with go-redis

* Update protocol to v1.2.1
This commit is contained in:
Benjamin Pracht
2022-11-07 17:27:28 -08:00
committed by GitHub
parent 5a8a6d11b2
commit c735668f67
8 changed files with 27 additions and 28 deletions
+2 -2
View File
@@ -48,12 +48,12 @@ const (
)
type RedisStore struct {
rc *redis.Client
rc redis.UniversalClient
ctx context.Context
done chan struct{}
}
func NewRedisStore(rc *redis.Client) *RedisStore {
func NewRedisStore(rc redis.UniversalClient) *RedisStore {
return &RedisStore{
ctx: context.Background(),
rc: rc,