DriverX / aioredis-cluster

Redis Cluster support extension for aioredis
MIT License
24 stars 7 forks source link

Support decode_responses in initialization / create_redis_cluster #12

Closed theblazehen closed 2 years ago

theblazehen commented 2 years ago

Passing in a decode_responses=True into the create_redis_cluster initializer would be convenient. This would call a .decode('utf-8') or similar on all results before returning them

It's currently implemented in both redis-py and aioredis

DriverX commented 2 years ago

aioredis_cluster supports encoding argument in client factories create_redis_cluster and create_cluster

from aioredis_cluster import create_redis_cluster

redis = await create_redis_cluster(
    [
        ...
    ],
    encoding="utf-8",
)
theblazehen commented 2 years ago

Ah, I see. Thanks!