Redis::Client::String - Work with Redis strings
version 0.015
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.
tie
Additionally, the tied object also overloads the stringification operator and numerical and string comparitors.
Moose::Object
Redis::Client::Role::Tied
Mike Friedman <friedo@friedo.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.
cpanm
cpanm Redis::Client
CPAN shell
perl -MCPAN -e shell install Redis::Client
For more information on module installation, please visit the detailed CPAN module installation guide.