Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 551 Bytes

README.md

File metadata and controls

24 lines (16 loc) · 551 Bytes

redisns

Requires redis-py module.

Inspired by redis-namespace from Chris Wanstrath.

>>> from redisns import Redisns
>>> db = Redisns('MyApp::v1', host="127.0.0.1", port=6379)

>>> db.set("user1", "John Doe")
'OK'
>>> print db.get("user1")
u'John Doe'

Would be translated into:

>>> db.set("MyApp::v1:user1", "John Doe")
'OK'
>>> print db.get("MyApp::v1:user")
u'John Doe'

author

Rafael Valverde, rafacvo@gmail.com