AnyEvent-Redis-RipeRedis

 view release on metacpan or  search on metacpan

Changes  view on Meta::CPAN

1.104 Sat Sep 1 03:14:45 MSK 2012
  - E_IO_OPERATION renamed to E_IO.
  - E_CONN_CLOSED_ON_DEMAND renamed to E_CONN_CLOSED_BY_CLIENT.
  - E_UNEXPECTED renamed to E_CLIENT.

1.103 Fri Aug 31 14:24:45 MSK 2012
  - POD has been complemented.
  - Cosmetic changes.

1.102 Fri Aug 31 00:19:15 MSK 2012
  - FEATURE: Added error codes in 'on_error' callbacks.
  - FEATURE: Added constants for error codes.
  - unit tests improved.
  - Many internal changes.

1.000 Wed Aug 15 23:24:05 MSK 2012
  - BUGFIX: Now, connection to server closed automatically after destroying
    last reference on AnyEvent::Redis::RipeRedis object.
  - BUGFIX: Fixed cyclic references.

0.807301 Wed Aug 15 00:52:45 MSK 2012

Changes  view on Meta::CPAN

  - Many internal changes
  - Changed format of error messages.

0.807200 Fri Jun 29 22:12:40 MSK 2012
  - BUGFIX: "on_done" callback now calls at the end of processing of response,
    to avoid unexpected behavior.

0.807100 Wed Jun 20 10:38:50 MSK 2012
  - BUGFIX: If some error ocurred or if connection was closed, then uncompleted
    commands will be aborted before calling 'on_error', 'on_connect_error'
    or 'on_disconnect' callbacks, to avoid unexpected behavior.

0.807000 Mon Jun 18 14:55:50 MSK 2012
  - FEATURE: Added 'on_connect_error' callback in constructor

0.806000 Thu Jun 14 15:47:10 MSK 2012
  - FEATURE: Added public method disconnect()

0.805201 Wed Jun 13 10:14:00 MSK 2012
  - Minor fix in POD.

lib/AnyEvent/Redis/RipeRedis.pm  view on Meta::CPAN

The C<on_done> callback is called when the current operation was completed
successfully.

=item on_error => $cb->( $err_msg, $err_code )

The C<on_error> callback is called when some error occurred.

=item on_reply => $cb->( [ $reply ] [, $err_msg, $err_code ] )

Since version 1.300 of the client you can specify single, C<on_reply> callback,
instead of two, C<on_done> and C<on_error> callbacks. The C<on_reply> callback
is called in both cases: when operation was completed successfully or when some
error occurred. In first case to callback is passed only reply data. In second
case to callback is passed three arguments: The C<undef> value or reply data
with error objects (see below), error message and error code.

=back

=head1 TRANSACTIONS

The detailed information abount the Redis transactions can be found here:

lib/AnyEvent/Redis/RipeRedis.pm  view on Meta::CPAN


The cluster is down or hash slot not served.

=back

=head1 DISCONNECTION

When the connection to the server is no longer needed you can close it in three
ways: call the method C<disconnect()>, send the C<QUIT> command or you can just
"forget" any references to an AnyEvent::Redis::RipeRedis object, but in this
case a client object is destroyed without calling any callbacks, including
the C<on_disconnect> callback, to avoid an unexpected behavior.

=head2 disconnect()

The method for synchronous disconnection. All uncompleted operations will be
aborted.

  $redis->disconnect();

=head2 quit()



( run in 0.354 second using v1.01-cache-2.11-cpan-9b1e4054eb1 )