cutelyst  3.9.1
A C++ Web Framework built on top of Qt, using the simple approach of Catalyst (Perl) framework.
memcachedsessionstore.h
1 /*
2  * SPDX-FileCopyrightText: (C) 2017-2022 Matthias Fehring <mf@huessenbergnetz.de>
3  * SPDX-License-Identifier: BSD-3-Clause
4  */
5 #ifndef CUTELYSTMEMCACHEDSESSIONSTORE_H
6 #define CUTELYSTMEMCACHEDSESSIONSTORE_H
7 
8 #include <Cutelyst/Plugins/Session/session.h>
9 #include <Cutelyst/cutelyst_global.h>
10 
11 namespace Cutelyst {
12 
13 class Application;
14 class MemcachedSessionStorePrivate;
15 
72 class CUTELYST_PLUGIN_MEMCACHEDSESSIONSTORE_EXPORT MemcachedSessionStore : public SessionStore
73 {
74  Q_OBJECT
75  Q_DECLARE_PRIVATE(MemcachedSessionStore)
76 public:
82  MemcachedSessionStore(Application *app, QObject *parent = nullptr);
83 
88 
89  virtual QVariant getSessionData(Context *c,
90  const QString &sid,
91  const QString &key,
92  const QVariant &defaultValue) final;
93 
94  virtual bool storeSessionData(Context *c,
95  const QString &sid,
96  const QString &key,
97  const QVariant &value) final;
98 
99  virtual bool deleteSessionData(Context *c, const QString &sid, const QString &key) final;
100 
101  virtual bool deleteExpiredSessions(Context *c, quint64 expires) final;
102 
107  void setGroupKey(const QString &groupKey);
108 
109 protected:
111 };
112 
113 } // namespace Cutelyst
114 
115 #endif // CUTELYSTMEMCACHEDSESSIONSTORE_H
Memcached based session store.
The Cutelyst Context.
Definition: context.h:38
The Cutelyst namespace holds all public Cutelyst API.
Definition: Mainpage.dox:7
The Cutelyst Application.
Definition: application.h:42