qredisclient
|
Public Member Functions | |
ScanCommand (const QList< QByteArray > &cmd, int db) | |
ScanCommand (const QList< QByteArray > &cmd) | |
void | setCursor (long long cursor) |
bool | isValidScanCommand () |
Public Member Functions inherited from RedisClient::Command | |
Command () | |
Constructs empty command. | |
Command (const QList< QByteArray > &cmd, int db=-1) | |
Constructs command with out callback. More... | |
Command (const QList< QByteArray > &cmd, QObject *context, Callback callback, int db=-1) | |
Constructs command with callback. More... | |
virtual | ~Command () |
~Command | |
Command & | append (const QByteArray &part) |
Append additional arg/part to command ("SET 1" + "2") More... | |
QByteArray | getByteRepresentation () const |
Get command in RESP format. More... | |
QByteArray | getRawString (int limit=200) const |
Get source command as single string. More... | |
QList< QByteArray > | getSplitedRepresentattion () const |
Get source command as list of args. More... | |
QString | getPartAsString (int i) |
Get specific argument/part of the command. More... | |
int | getDbIndex () const |
Get database index where this command should be executed. More... | |
bool | hasDbIndex () const |
hasDbIndex More... | |
QObject * | getOwner () const |
Get callback context. More... | |
void | setCallBack (QObject *context, Callback callback) |
Set context and callback. More... | |
Callback | getCallBack () const |
getCallBack More... | |
bool | hasCallback () const |
hasCallback More... | |
void | markAsHiPriorityCommand () |
Mark this command as High Priority command. Command will be added to the begining of the Connection queue instead of end. | |
bool | isHiPriorityCommand () const |
isHiPriorityCommand More... | |
bool | isValid () const |
isValid More... | |
bool | isEmpty () const |
bool | isScanCommand () const |
bool | isSelectCommand () const |
bool | isSubscriptionCommand () const |
bool | isUnSubscriptionCommand () const |
Additional Inherited Members | |
Public Types inherited from RedisClient::Command | |
typedef std::function< void(Response, QString)> | Callback |
Static Public Member Functions inherited from RedisClient::Command | |
static QList< QByteArray > | splitCommandString (const QString &) |
Parse command from raw string. Useful for CLI clients. More... | |
Protected Attributes inherited from RedisClient::Command | |
QObject * | m_owner |
QList< QByteArray > | m_commandWithArguments |
int | m_dbIndex |
bool | m_hiPriorityCommand |
Callback | m_callback |