GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  REDIS::HASH (3)

.ds Aq ’

NAME

Redis::Hash - tie Perl hashes to Redis hashes

CONTENTS

VERSION

version 1.965

DESCRIPTION

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

o Pedro Melo <melo@cpan.org>
o Damien Krotkine <dams@cpan.org>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2013 by Pedro Melo, Damien Krotkine.

This is free software, licensed under:



  The Artistic License 2.0 (GPL Compatible)



Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 REDIS::HASH (3) 2013-11-29

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.