AnyEvent-RipeRedis
view release on metacpan or search on metacpan
# reply handling...
}
);
# ERROR CODES
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 );
- E\_CANT\_CONN
Can't connect to the server. All operations were aborted.
- E\_LOADING\_DATASET
Redis is loading the dataset in memory.
- E\_IO
Input/Output operation error. The connection to the Redis server was closed and
all operations were aborted.
- E\_CONN\_CLOSED\_BY\_REMOTE\_HOST
The connection closed by remote host. All operations were aborted.
- E\_CONN\_CLOSED\_BY\_CLIENT
Connection closed by client prematurely. Uncompleted operations were aborted.
- E\_NO\_CONN
No connection to the Redis server. Connection was lost by any reason on previous
operation.
- E\_OPRN\_ERROR
Operation error. For example, wrong number of arguments for a command.
- E\_UNEXPECTED\_DATA
The client received unexpected reply from the server. The connection to the Redis
server was closed and all operations were aborted.
- E\_READ\_TIMEDOUT
Read timed out. The connection to the Redis server was closed and all operations
were aborted.
Error codes available since Redis 2.6.
- E\_NO\_SCRIPT
No matching script. Use the `EVAL` command.
- E\_BUSY
Redis is busy running a script. You can only call `SCRIPT KILL`
or `SHUTDOWN NOSAVE`.
- E\_NOT\_BUSY
No scripts in execution right now.
- E\_MASTER\_DOWN
Link with MASTER is down and slave-serve-stale-data is set to 'no'.
- 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.
- E\_READONLY
You can't write against a read only slave.
- E\_OOM
Command not allowed when used memory > 'maxmemory'.
- E\_EXEC\_ABORT
Transaction discarded because of previous errors.
Error codes available since Redis 2.8.
- E\_NO\_AUTH
Authentication required.
- E\_WRONG\_TYPE
Operation against a key holding the wrong kind of value.
- E\_NO\_REPLICAS
Not enough good slaves to write.
- E\_BUSY\_KEY
Target key name already exists.
Error codes available since Redis 3.0.
- E\_CROSS\_SLOT
Keys in request don't hash to the same slot.
- E\_TRY\_AGAIN
Multiple keys request during rehashing of slot.
- E\_ASK
Redirection required. For more information see:
[http://redis.io/topics/cluster-spec](http://redis.io/topics/cluster-spec)
( run in 0.459 second using v1.01-cache-2.11-cpan-39bf76dae61 )