Redis::Fast::Hash(3pm)

Redis::Fast::Hash3pm

Synopsys

    ## Create fake hash using keys like 'hash_prefix:KEY'
    tie %my_hash, 'Redis::Fast::Hash', 'hash_prefix', @Redis_new_parameters;
    ## Treat the entire Redis database as a hash
    tie %my_hash, 'Redis::Fast::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 = ();

Overview

Ties a Perl hash to Redis::Fast. 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.

Releases

4 releases since Debian 10 (Buster); the text changed 3 times.

  1. 10
  2. 11
  3. 12
  4. 13

From libredis-fast-perl 0.37+dfsg-1+b1 in Debian 13 (Trixie). Parsed by carta from the page's man source.