-
-
12 Dec 2019 04:02:11 UTC
- Distribution: Redis-Namespace
- Module version: 0.13
- Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Repository
- Issues
- Testers (249 / 0 / 2)
- Kwalitee
Bus factor: 2- 24.44% Coverage
- License: perl_5
- Perl: v5.10.1
- Activity
24 month- Tools
- Download (25.74KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- Redis
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Redis::Namespace - a wrapper of Redis.pm that namespaces all Redis calls
SYNOPSIS
use Redis; use Redis::Namespace; my $redis = Redis->new; my $ns = Redis::Namespace->new(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');
DESCRIPTION
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.
OPTIONS
- redis
-
An instance of Redis.pm or Redis::Fast.
- namespace
-
prefix of keys.
- guess
-
If
Redis::Namespace
doesn't known the command, call command info and guess positions of keys. It is boolean value. - strict
-
It is boolean value. If it is true,
Redis::Namespace
doesn't execute unsafe commands which may break another namepace and/or change the state of redis-server, such asFLUSHALL
andSHUTDOWN
. Also, unknown commands are not executed, because there is no guarantee that the command does not break another namepace.
AUTHOR
Ichinose Shogo <shogo82148@gmail.com>
SEE ALSO
LICENSE
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Module Install Instructions
To install Redis::Namespace, copy and paste the appropriate command in to your terminal.
cpanm Redis::Namespace
perl -MCPAN -e shell install Redis::Namespace
For more information on module installation, please visit the detailed CPAN module installation guide.