Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
This gem adds a Redis::Namespace class which can be used to namespace Redis keys.
Ruby
Tag: v0.1.0

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib/redis
spec
README.md
Rakefile

README.md

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 --source=http://gemcutter.org

Author

Chris Wanstrath :: chris@ozmm.org

Something went wrong with that request. Please try again.