Nicholas Perez > ShardedKV-0.16 > ShardedKV::Storage::Redis::Hash

Download:
ShardedKV-0.16.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.16   Source   Latest Release: ShardedKV-0.20

NAME ^

ShardedKV::Storage::Redis::Hash - Storing hash values in Redis

VERSION ^

version 0.16

SYNOPSIS ^

  use ShardedKV;
  use ShardedKV::Storage::Redis::Hash;
  ... create ShardedKV...
  my $storage = ShardedKV::Storage::Redis::Hash->new(
    redis_connect_str => 'redisshard1:679',
    expiration_time => 60*60, #1h
  );
  ... put storage into ShardedKV...
  
  # values are scalar references to strings
  $skv->set("foo", {bar => 'baz', cat => 'dog'});
  my $value_ref = $skv->get("foo");

DESCRIPTION ^

This subclass of ShardedKV::Storage::Redis implements simple string/blob values in Redis. See the documentation for ShardedKV::Storage::Redis for the interface of this class.

The values of a ShardedKV::Storage::Redis::Hash are actually scalar references to strings.

SEE ALSO ^

AUTHORS ^

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2013 by Steffen Mueller.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

syntax highlighting: