basecamp/redis-namespace

Name: redis-namespace

Owner: Basecamp

Description: This gem adds a Redis::Namespace class which can be used to namespace Redis keys.

Created: 2012-05-24 20:25:47.0

Updated: 2014-10-25 15:32:55.0

Pushed: 2012-05-24 20:28:11.0

Homepage: http://redis.io

Size: 135

Language: Ruby

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

redis-namespace

Requires the redis gem.

Namespaces all Redis calls.

Redis::Namespace.new(:ns, :redis => @r)
oo'] = 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


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.