NAME
Danga::Socket::Redis - An asynchronous redis client.
SYNOPSIS
use Danga::Socket::Redis;
my $rs = Danga::Socket::Redis->new ( connected => \&redis_connected );
sub redis_connected { $rs->set ( "key", "value" ); $rs->get ( "key", sub { my ( $self, $value ) = @_; print "$key = $value\n" } ); $rs->publish ( "newsfeed", "Twitter is down" ); $rs->hset ( "hkey", "field", "value" ); $rs->hget ( "hkey", "field", sub { my ( $self, $value ) = @_ } ); $rs->subscribe ( "newsfeed", sub { my ( $self, $msg ) = @_ } ); }
Danga::Socket->EventLoop;
DESCRIPTION
An asynchronous client for the key/value store redis. Asynchronous basically means a method does not block. A supplied callback will be called with the results when they are ready.
USAGE
BUGS
Only started, a lot of redis functions need to be added.
SUPPORT
dm @martinredmond martin @ tinychat.com
AUTHOR
Martin Redmond
CPAN ID: REDS
Tinychat.com
@martinredmond
http://Tinychat.com/about.php
COPYRIGHT
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
SEE ALSO
perl(1).