17 virtual QString
key()
const = 0;
23 virtual QByteArray
get(
const QByteArray &key) = 0;
24 virtual bool set(
const QByteArray &key,
const QByteArray &value,
int seconds) = 0;
25 virtual bool remove(
const QByteArray &key) = 0;
27 virtual void gc() = 0;
28 virtual QMap<QString, QVariant>
defaultSettings()
const {
return QMap<QString, QVariant>(); }
The TCacheStore class provides a listing of cache store interfaces.
Definition: tcachestore.h:8
virtual bool remove(const QByteArray &key)=0
virtual bool set(const QByteArray &key, const QByteArray &value, int seconds)=0
virtual QMap< QString, QVariant > defaultSettings() const
Definition: tcachestore.h:28
virtual ~TCacheStore()
Definition: tcachestore.h:16
virtual QString key() const =0
DbType
Definition: tcachestore.h:10
@ Invalid
Definition: tcachestore.h:13
@ SQL
Definition: tcachestore.h:11
@ KVS
Definition: tcachestore.h:12
virtual DbType dbType() const =0
virtual void init()
Definition: tcachestore.h:19
virtual void cleanup()
Definition: tcachestore.h:20
virtual QByteArray get(const QByteArray &key)=0
#define T_CORE_EXPORT
Definition: tdeclexport.h:28