Redis values set from Python are not reflecting in redis client
0
I have installed redis on my OS X, and trying to set and get some values in Redis from Python 3.5 client. I have the Redis server on (through command redis-server ) and the redis-client on as well (opened through the command redis-cli ). This is what I am trying on Python: import redis r = redis.StrictRedis() r.set("foo", "bar") r.get("foo") This prints bar as expected. However, if I go to my redis-client prompt and try get foo , it returns nil . In the same way, if I set a value in the redis-client itself, like set boo too , calling get boo in the client returns too as expected, however, in my Python client if I run r.get(boo) , I get None . Funny thing is, they are synced between their own instances. So if I open another Python command prompt and type r.get("foo...