NAME
ShardedKV::Storage::Redis::Hash - Storing hash values in Redis
SYNOPSIS
use ShardedKV;
use ShardedKV::Storage::Redis::Hash;
... create ShardedKV...
my $storage = ShardedKV::Storage::Redis::Hash->new(
redis_master_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
ShardedKV, ShardedKV::Storage ShardedKV::Storage::Redis, ShardedKV::Storage::Redis::String
AUTHOR
Steffen Mueller <smueller@cpan.org>
COPYRIGHT AND LICENSE
Copyright (C) 2012 by Steffen Mueller
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.1 or, at your option, any later version of Perl 5 you may have available.