Redis::Client::String - Work with Redis strings
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';
This class provides a
tied 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.
tied object also overloads the stringification operator and numerical and string comparitors.
Mike Friedman <firstname.lastname@example.org>
This software is copyright (c) 2011 by Mike Friedman.