REDIS::HASH(3PM) - Linux man page online | Library functions
Tie Perl hashes to Redis hashes.
Chapter
2016-10-15
Redis::Hash(3pm) User Contributed Perl Documentation Redis::Hash(3pm)
@cpan.org>
· Damien Krotkine <
@cpan.org>
perl v5.24.1 2016-10-15 Redis::Hash(3pm)
NAME
Redis::Hash - tie Perl hashes to Redis hashesVERSION
version 1.991DESCRIPTION
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
## Create fake hash using keys like 'hash_prefix:KEY' tie %my_hash, 'Redis::Hash', 'hash_prefix', @Redis_new_parameters; ## Treat the entire Redis database as a hash tie %my_hash, 'Redis::Hash', undef, @Redis_new_parameters; $value = $my_hash{$key}; $my_hash{$key} = $value; @keys = keys %my_hash; @values = values %my_hash; %my_hash = reverse %my_hash; %my_hash = ();AUTHORS
· Pedro Melo <
