Redis::Client::String - Work with Redis strings
my $client = Redis::Client->new;
tie my $str, 'Redis::Client::String', key => 'my_string', client => $client;
$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.
Additionally, the tied object also overloads the stringification operator and numerical and string comparitors.
Mike Friedman <email@example.com>
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.
To install Redis::Client, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.