NAME
Redis::Client::String - Work with Redis strings
VERSION
version 0.015
SYNOPSIS
use Redis::Client;
my $client = Redis::Client->new;
tie my $str, 'Redis::Client::String', key => 'my_string', client => $client;
print $str;
$str = 'foo';
$str .= 'bar';
print 1 if $str eq 'foobar';
DESCRIPTION
This class provides a tie
d interface for Redis strings. Redis strings are mapped to Perl scalars. Like Perl scalars, a Redis string may contain any single value, including a character string, number, etc. Any time the string is evaluated, its current value will be fetched from the Redis store. Any time it is modified, the value will be written to the Redis store.
Additionally, the tie
d object also overloads the stringification operator and numerical and string comparitors.
SEE ALSO
EXTENDS
CONSUMES
AUTHOR
Mike Friedman <friedo@friedo.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2011 by Mike Friedman.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.