No commit activity in last 3 years
No release in over 3 years
Adds a Redis::Namespace class which can be used to namespace calls to Redis. This is useful when using a single instance of Redis with multiple, different applications. This fork adds support for the much loved multi and pipelined commands.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0

Runtime

~> 3.0.0
 Project Readme

redis-namespace

Requires the redis gem.

Namespaces all Redis calls.

r = Redis::Namespace.new(:ns, :redis => @r)
r['foo'] = 1000

This will perform the equivalent of:

redis-cli set ns:foo 1000

Useful when you have multiple systems using Redis differently in your app.

Installation

$ gem install redis-namespace

Testing

$ bundle install
$ rake

Author

Chris Wanstrath :: chris@ozmm.org Terence Lee :: hone02@gmail.com