AnyEvent-RipeRedis
view release on metacpan or search on metacpan
lib/AnyEvent/RipeRedis.pm view on Meta::CPAN
Every error object, passed to callback, contain error code, which can be used
for programmatic handling of errors. AnyEvent::RipeRedis provides constants for
error codes. They can be imported and used in expressions.
use AnyEvent::RipeRedis qw( :err_codes );
=over
=item E_CANT_CONN
Can't connect to the server. All operations were aborted.
=item E_LOADING_DATASET
Redis is loading the dataset in memory.
=item E_IO
Input/Output operation error. The connection to the Redis server was closed and
all operations were aborted.
=item E_CONN_CLOSED_BY_REMOTE_HOST
The connection closed by remote host. All operations were aborted.
=item E_CONN_CLOSED_BY_CLIENT
Connection closed by client prematurely. Uncompleted operations were aborted.
=item E_NO_CONN
No connection to the Redis server. Connection was lost by any reason on previous
operation.
=item E_OPRN_ERROR
Operation error. For example, wrong number of arguments for a command.
=item E_UNEXPECTED_DATA
The client received unexpected reply from the server. The connection to the Redis
server was closed and all operations were aborted.
=item E_READ_TIMEDOUT
Read timed out. The connection to the Redis server was closed and all operations
were aborted.
=back
Error codes available since Redis 2.6.
=over
=item E_NO_SCRIPT
No matching script. Use the C<EVAL> command.
=item E_BUSY
Redis is busy running a script. You can only call C<SCRIPT KILL>
or C<SHUTDOWN NOSAVE>.
=item E_NOT_BUSY
No scripts in execution right now.
=item E_MASTER_DOWN
Link with MASTER is down and slave-serve-stale-data is set to 'no'.
=item E_MISCONF
Redis is configured to save RDB snapshots, but is currently not able to persist
on disk. Commands that may modify the data set are disabled. Please check Redis
logs for details about the error.
=item E_READONLY
You can't write against a read only slave.
=item E_OOM
Command not allowed when used memory > 'maxmemory'.
=item E_EXEC_ABORT
Transaction discarded because of previous errors.
=back
Error codes available since Redis 2.8.
=over
=item E_NO_AUTH
Authentication required.
=item E_WRONG_TYPE
Operation against a key holding the wrong kind of value.
=item E_NO_REPLICAS
Not enough good slaves to write.
=item E_BUSY_KEY
Target key name already exists.
=back
Error codes available since Redis 3.0.
=over
=item E_CROSS_SLOT
Keys in request don't hash to the same slot.
( run in 1.332 second using v1.01-cache-2.11-cpan-39bf76dae61 )