NAME

AnyEvent::Redis - Non-blocking Redis client

SYNOPSIS

use AnyEvent::Redis;

my $redis = AnyEvent::Redis->new(
    host => '127.0.0.1',
    port => 6379,
    on_error => sub { warn @_ },
);

# callback based
$redis->set( 'foo'=> 'bar', sub { warn "SET!" } );
$redis->get( 'foo', sub { my $value = shift } );

$redis->lpush( $key, $value );
$redis->lpop( $key, sub { my $value = shift });

# condvar based
my $cv = $redis->lpop( $key );
$cv->cb(sub { my $value = $_[0]->recv });

DESCRIPTION

AnyEvent::Redis is a non-blocking Redis client using AnyEvent.

AUTHOR

Tatsuhiko Miyagawa <miyagawa@bulknews.net>

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO

Redis AnyEvent