NAME
Tie::Redis::Candy::Hash - tie Perl hashes to Redis hashes - the candy way
VERSION
version 0.001
DESCRIPTION
Ties a Perl hash to Redis. Note that it doesn't use Redis Hashes, but implements a fake hash using regular keys like "prefix:KEY".
If no prefix
is given, it will tie the entire Redis database as a hash.
Future versions will also allow you to use real Redis hash structures.
SYNOPSYS
my $redis = Redis->new(...);
## Create fake hash using keys like 'hash_prefix:KEY'
tie %my_hash, 'Tie::Redis::Candy::Hash', 'hash_prefix', $redis;
## Treat the entire Redis database as a hash
tie %my_hash, 'Tie::Redis::Candy::Hash', undef, $redis;
$value = $my_hash{$key};
$my_hash{$key} = $value;
@keys = keys %my_hash;
@values = values %my_hash;
%my_hash = reverse %my_hash;
%my_hash = ();
HISTORY
This module is originally based on Redis::Hash by Pedro Melo and Damien Krotkine.
BUGS
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.
AUTHOR
David Zurborg <zurborg@cpan.org>
COPYRIGHT AND LICENSE
This software is Copyright (c) 2015 by David Zurborg.
This is free software, licensed under:
The ISC License