Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

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

License

Notifications You must be signed in to change notification settings

PizzaPowered/redis-namespace

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

83 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%