Skip to content

rafacv/redisns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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, [email protected]

About

Keep your Redis' keys namespaced.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages