Tie::Redis::Candy - Tie Redis to HashRef or ArrayRef
version 1.001
use Tie::Redis::Candy qw(redis_hash redis_array); my $redis = Redis->new(...); my $hashref = redis_hash($redis, $key, %initial_values); $hashref->{foo} = 'bar'; my $arrayref = redis_array($redis, $listname, @initial_values); push @$arrayref => ('foo', 'bar');
This module is inspired by Tie::Redis and Redis::Hash/Redis::List.
$redis must be an instance of Redis. $key is the name of the hash key.
$redis
$key
The hash will not cleared at this point, but the initial values are appended.
Behaves similiar to "redis_hash", except that a redis array is used.
The array will not cleared at this point, but the initial values are pushed at the end of list.
Serialization is done by CBOR::XS which is fast and light.
Nothing by default. "redis_hash" and "redis_array" can be exported on request.
Please report any bugs or feature requests on the bugtracker website https://github.com/zurborg/libtie-redis-candy-perl/issues
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
David Zurborg <zurborg@cpan.org>
This software is Copyright (c) 2015 by David Zurborg.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
To install Tie::Redis::Candy, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Tie::Redis::Candy
CPAN shell
perl -MCPAN -e shell install Tie::Redis::Candy
For more information on module installation, please visit the detailed CPAN module installation guide.