[Awesome Ruby Gem] Use redis-namespace gem to namespace Redis keys
redis-namespace
Redis::Namespace
provides an interface to a namespaced subset of your redis keyspace (e.g., keys with a common beginning), and requires the GitHub - redis/redis-rb: A Ruby client library for Redis - https://github.com/redis/redis-rb gem.
Installation
You can install it as a gem:
1 | gem install redis-namespace |
or add it into a Gemfile (Bundler):
1 | # Gemfile |
Then, run bundle install
.
1 | bundle install |
Usages
1 | require 'redis-namespace' |
References
[2] redis-namespace | RubyGems.org | your community gem host - https://rubygems.org/gems/redis-namespace
[3] GitHub - redis/redis-rb: A Ruby client library for Redis - https://github.com/redis/redis-rb