1Redis::Hash(3pm)      User Contributed Perl Documentation     Redis::Hash(3pm)
2
3
4

NAME

6       Redis::Hash - tie Perl hashes to Redis hashes
7

VERSION

9       version 1.999
10

DESCRIPTION

12       Ties a Perl hash to Redis. Note that it doesn't use Redis Hashes, but
13       implements a fake hash using regular keys like "prefix:KEY".
14
15       If no "prefix" is given, it will tie the entire Redis database as a
16       hash.
17
18       Future versions will also allow you to use real Redis hash structures.
19

SYNOPSYS

21           ## Create fake hash using keys like 'hash_prefix:KEY'
22           tie %my_hash, 'Redis::Hash', 'hash_prefix', @Redis_new_parameters;
23
24           ## Treat the entire Redis database as a hash
25           tie %my_hash, 'Redis::Hash', undef, @Redis_new_parameters;
26
27           $value = $my_hash{$key};
28           $my_hash{$key} = $value;
29
30           @keys   = keys %my_hash;
31           @values = values %my_hash;
32
33           %my_hash = reverse %my_hash;
34
35           %my_hash = ();
36

AUTHORS

38       •   Pedro Melo <melo@cpan.org>
39
40       •   Damien Krotkine <dams@cpan.org>
41
43       This software is Copyright (c) 2015 by Pedro Melo, Damien Krotkine.
44
45       This is free software, licensed under:
46
47         The Artistic License 2.0 (GPL Compatible)
48
49
50
51perl v5.34.0                      2022-01-21                  Redis::Hash(3pm)
Impressum