TreeFrogFramework 2.10
Loading...
Searching...
No Matches
tcache.h
Go to the documentation of this file.
1#pragma once
2#include <TGlobal>
3
4class TCacheStore;
5
6
8public:
9 TCache();
10 ~TCache();
11
12 bool set(const QByteArray &key, const QByteArray &value, int seconds);
13 QByteArray get(const QByteArray &key);
14 void remove(const QByteArray &key);
15 void clear();
16
17 static bool compressionEnabled();
18
19private:
20 void initialize();
21 void cleanup();
22
23 TCacheStore *_cache {nullptr};
24 int _gcDivisor {0};
25
26 friend class TWebApplication;
29};
The TCacheStore class provides a listing of cache store interfaces.
Definition tcachestore.h:8
The TCache class stores items so that can be served faster.
Definition tcache.h:7
The TWebApplication class provides an event loop for TreeFrog applications.
Definition twebapplication.h:23
#define T_CORE_EXPORT
Definition tdeclexport.h:28
#define T_DISABLE_COPY(Class)
Definition tdeclexport.h:37
#define T_DISABLE_MOVE(Class)
Definition tdeclexport.h:41