Add support for redis with password, introduced new arguments with -
This commit is contained in:
1 parent
c10e0a17cf
commit
22862a2795
4 files changed
+76
-33
No files matched your search
+5
-3
@@ -9,7 +9,6 @@
|
||||
|
||||
#ifdef FEATURE_REDIS
|
||||
#include <hiredis/async.h>
|
||||
#include "redisqtadapter.h"
|
||||
#endif
|
||||
|
||||
class QWebSocket;
|
||||
@@ -21,7 +20,11 @@ class WebServer : public QObject
|
||||
friend class Client;
|
||||
|
||||
public:
|
||||
explicit WebServer(const QString &identity, const QString &url, QObject *parent = nullptr);
|
||||
explicit WebServer(const QString &identity,
|
||||
#ifdef FEATURE_REDIS
|
||||
redisAsyncContext *redis,
|
||||
#endif
|
||||
QObject *parent = nullptr);
|
||||
~WebServer() override;
|
||||
|
||||
bool bind(QTcpServer *server);
|
||||
@@ -46,6 +49,5 @@ private:
|
||||
|
||||
#ifdef FEATURE_REDIS
|
||||
redisAsyncContext *m_redis;
|
||||
RedisQtAdapter m_redisAdapter;
|
||||
#endif
|
||||
};
|
||||
Reference in new issue
Block a user