Open
Description
Proposal:
r = redis.Redis(namespace='foobar')
Behind-the-scenes, this would prefix every key with foobar
.
For example, if I issued the following command:
r.set('abc', 'xyz')
It would be equivalent to the following:
redis-cli set foobar:abc xyz
In Ruby, the redis-namespace class does the same thing.
However, I think that it would be preferable if this were a core feature of the Python client.