Write to several database in Redis for python
DBs are supposed to be zero-based numeric index (apperently the limit is 15). Try using
r1 = redis.Redis(host='127.0.0.1', port=6379, db = 0)r2 = redis.Redis(host='127.0.0.1', port=6379, db = 1)
DBs are supposed to be zero-based numeric index (apperently the limit is 15). Try using
r1 = redis.Redis(host='127.0.0.1', port=6379, db = 0)r2 = redis.Redis(host='127.0.0.1', port=6379, db = 1)