cutelyst
3.9.1
A C++ Web Framework built on top of Qt, using the simple approach of Catalyst (Perl) framework.
Cutelyst
Plugins
MemcachedSessionStore
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
87
~MemcachedSessionStore
();
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
:
110
QScopedPointer<MemcachedSessionStorePrivate>
d_ptr;
111
};
112
113
}
// namespace Cutelyst
114
115
#endif
// CUTELYSTMEMCACHEDSESSIONSTORE_H
Cutelyst::Application
The Cutelyst Application.
Definition
application.h:43
Cutelyst::Context
The Cutelyst Context.
Definition
context.h:39
Cutelyst::MemcachedSessionStore
Memcached based session store.
Definition
memcachedsessionstore.h:73
Cutelyst::SessionStore
Definition
session.h:17
Cutelyst
The Cutelyst namespace holds all public Cutelyst API.
Definition
Mainpage.dox:8
QObject
QScopedPointer
QString
QVariant
Generated on Fri May 16 2025 00:00:00 for cutelyst by
1.10.0