qredisclient
scancommand.h
1 #pragma once
2 #include "command.h"
3 
4 namespace RedisClient {
5 
6 class ScanCommand : public Command
7 {
8 public:
9  ScanCommand(const QList<QByteArray>& cmd, int db) : Command(cmd, db) {}
10  ScanCommand(const QList<QByteArray>& cmd) : Command(cmd) {}
11 
12  void setCursor(long long cursor);
13 
14  bool isValidScanCommand();
15 
16 private:
17  bool isKeyScanCommand(const QString& cmd);
18  bool isValueScanCommand(const QString& cmd);
19 };
20 
21 }
Definition: command.h:8
Definition: scancommand.h:6
The Command class.
Definition: command.h:18
Command()
Constructs empty command.
Definition: command.cpp:7