Query: redis::hash
OS: debian
Section: 3pm
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
Redis::Hash(3pm) User Contributed Perl Documentation Redis::Hash(3pm)NAMERedis::Hash - tie Perl hashes to Redis hashesVERSIONversion 1.951DESCRIPTIONTies 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_list{$key}; $my_list{$key} = $value; @keys = keys %my_hash; @values = values %my_hash; %my_hash = reverse %my_hash; %my_hash = ();AUTHORPedro Melo <melo@cpan.org>COPYRIGHT AND LICENSEThis software is Copyright (c) 2012 by Pedro Melo. This is free software, licensed under: The Artistic License 2.0 (GPL Compatible) perl v5.14.2 2012-03-13 Redis::Hash(3pm)