Redis::Hash(3pm)

Redis::Hash3pm

Tie perl hashes to redis hashes

Version

version 2.000

Overview

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 = ();

Releases

7 releases since Debian 7 (Wheezy); the text changed 5 times.

  1. 7
  2. 8
  3. 9
  4. 10
  5. 11
  6. 12–13

Authors

•

Pedro Melo <[email protected]>

•

Damien Krotkine <[email protected]>

From libredis-perl 2:2.000-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.