TreeFrogFramework  2.8
Public Types | Public Member Functions | List of all members
TCacheStore Class Referenceabstract

#include <tcachestore.h>

Public Types

enum  DbType { SQL , KVS , Invalid }
 

Public Member Functions

virtual ~TCacheStore ()
 
virtual QString key () const =0
 
virtual DbType dbType () const =0
 
virtual void init ()
 
virtual void cleanup ()
 
virtual bool open ()=0
 
virtual void close ()=0
 
virtual QByteArray get (const QByteArray &key)=0
 
virtual bool set (const QByteArray &key, const QByteArray &value, int seconds)=0
 
virtual bool remove (const QByteArray &key)=0
 
virtual void clear ()=0
 
virtual void gc ()=0
 
virtual QMap< QString, QVariant > defaultSettings () const
 

Detailed Description

The TCacheStore class provides a listing of cache store interfaces.

Member Enumeration Documentation

◆ DbType

Enumerator
SQL 
KVS 
Invalid 

Constructor & Destructor Documentation

◆ ~TCacheStore()

virtual TCacheStore::~TCacheStore ( )
inlinevirtual

Member Function Documentation

◆ cleanup()

virtual void TCacheStore::cleanup ( )
inlinevirtual

◆ clear()

virtual void TCacheStore::clear ( )
pure virtual

◆ close()

virtual void TCacheStore::close ( )
pure virtual

◆ dbType()

virtual DbType TCacheStore::dbType ( ) const
pure virtual

◆ defaultSettings()

virtual QMap<QString, QVariant> TCacheStore::defaultSettings ( ) const
inlinevirtual

◆ gc()

virtual void TCacheStore::gc ( )
pure virtual

◆ get()

virtual QByteArray TCacheStore::get ( const QByteArray &  key)
pure virtual

◆ init()

virtual void TCacheStore::init ( )
inlinevirtual

◆ key()

virtual QString TCacheStore::key ( ) const
pure virtual

◆ open()

virtual bool TCacheStore::open ( )
pure virtual

◆ remove()

virtual bool TCacheStore::remove ( const QByteArray &  key)
pure virtual

◆ set()

virtual bool TCacheStore::set ( const QByteArray &  key,
const QByteArray &  value,
int  seconds 
)
pure virtual

The documentation for this class was generated from the following file: