Redis::Namespace - a wrapper of Redis.pm that namespaces all Redis calls
use Redis; use Redis::Namespace; my $redis = Redis->new; my $ns = Redis::Namespace(redis => $redis, namespace => 'fugu'); $ns->set('foo', 'bar'); # will call $redis->set('fugu:foo', 'bar'); my $foo = $ns->get('foo'); # will call $redis->get('fugu:foo');
Redis::Namespace is a wrapper of Redis.pm that namespaces all Redis calls. It is useful when you have multiple systems using Redis differently in your app.
Ichinose Shogo <shogo82148@gmail.com>
Redis
Redis.pm
redis-namespace
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Redis::Namespace, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Redis::Namespace
CPAN shell
perl -MCPAN -e shell install Redis::Namespace
For more information on module installation, please visit the detailed CPAN module installation guide.