Closed ucasiggcas closed 4 years ago
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.5/dist-packages/rediscluster/client.py", line 336, in __init__
raise RedisClusterException("Argument 'db' is not possible to use in cluster mode")
rediscluster.exceptions.RedisClusterException: Argument 'db' is not possible to use in cluster mode
@ucasiggcas The error message is very descriptive enough to say what is happening. I would recommend you to read up on the basics of redis cluster before you continue to know all of these more basic questions. You can find the docs and tutorial here https://redis.io/topics/cluster-tutorial and https://redis.io/topics/cluster-spec
In short, the concept of databases and selecting different ones in a cluster mode do not exists any longer. The concept of segmenting the data into smaller logic databases is not possible in a clustered environment.
In general what you do is to build a good key space pattern and then data can live along side each other w/o problem in a single database.
thanks a lot
hi,dear as I see the db in redis
but in rediscluster can't find the parameter?
So could I set the parameter ?? thx