Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 37 lines (26 sloc) 0.861 kb
610e06e @miyagawa Initial commit
miyagawa authored
1 NAME
36f8177 @miyagawa README
miyagawa authored
2 AnyEvent::Redis - Non-blocking Redis client
610e06e @miyagawa Initial commit
miyagawa authored
3
4 SYNOPSIS
5 use AnyEvent::Redis;
6
75e3332 @miyagawa Checking in changes prior to tagging of version 0.03. Changelog diff…
miyagawa authored
7 my $redis = AnyEvent::Redis->new(
8 host => '127.0.0.1',
9 port => 6379,
10 on_error => sub { warn @_ },
11 );
36f8177 @miyagawa README
miyagawa authored
12
13 # callback based
14 $redis->set( 'foo'=> 'bar', sub { warn "SET!" } );
15 $redis->get( 'foo', sub { my $value = shift } );
16
17 $redis->lpush( $key, $value );
18 $redis->lpop( $key, sub { my $value = shift });
19
20 # condvar based
21 my $cv = $redis->lpop( $key );
22 $cv->cb(sub { my $value = $_[0]->recv });
23
610e06e @miyagawa Initial commit
miyagawa authored
24 DESCRIPTION
36f8177 @miyagawa README
miyagawa authored
25 AnyEvent::Redis is a non-blocking Redis client using AnyEvent.
610e06e @miyagawa Initial commit
miyagawa authored
26
27 AUTHOR
28 Tatsuhiko Miyagawa <miyagawa@bulknews.net>
29
30 LICENSE
31 This library is free software; you can redistribute it and/or modify it
32 under the same terms as Perl itself.
33
34 SEE ALSO
36f8177 @miyagawa README
miyagawa authored
35 Redis AnyEvent
36
Something went wrong with that request. Please try again.