Enums

enum zcached.Errors(value)[source]
Member Type:

str

Valid values are as follows:

ConnectionClosed = The connection has been terminated.
ConnectionReestablished = The connection was terminated, but managed to reestablish it.
LibraryBug = This is probably a library bug. Please report it here: https://github.com/xXenvy/zcached.py
TimeoutLimit = The waiting time limit for a response has been reached.
NoAvailableConnections = No working connections available.
BadRequest = ERR bad request
UnExpected = ERR unexpected
MaxClientsReached = ERR max number of clients reached
BulkTooLarge = ERR bulk too large
NotWhitelisted = ERR not whitelisted
KeyNotString = TYPERR key not string
NotBoolean = TYPERR not boolean
NotInteger = TYPERR not integer
SaveFailure = ERR there is no data to save
enum zcached.Commands(value)[source]
Member Type:

bytes

Valid values are as follows:

PING = b'*1\r\n$4\r\nPING\r\n'
FLUSH = b'*1\r\n$5\r\nFLUSH\r\n'
DB_SIZE = b'*1\r\n$6\r\nDBSIZE\r\n'
SAVE = b'*1\r\n$4\r\nSAVE\r\n'
KEYS = b'*1\r\n$4\r\nKEYS\r\n'
LAST_SAVE = b'*1\r\n$8\r\nLASTSAVE\r\n'