TreeFrogFramework 2.10
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Friends | List of all members
TCache Class Reference

#include <tcache.h>

Public Member Functions

 TCache ()
 
 ~TCache ()
 
bool set (const QByteArray &key, const QByteArray &value, int seconds)
 
QByteArray get (const QByteArray &key)
 
void remove (const QByteArray &key)
 
void clear ()
 

Static Public Member Functions

static bool compressionEnabled ()
 

Friends

class TWebApplication
 

Detailed Description

The TCache class stores items so that can be served faster.

Constructor & Destructor Documentation

◆ TCache()

TCache::TCache ( )

◆ ~TCache()

TCache::~TCache ( )

Member Function Documentation

◆ clear()

void TCache::clear ( )

Removes all items from the cache.

◆ compressionEnabled()

bool TCache::compressionEnabled ( )
static

◆ get()

QByteArray TCache::get ( const QByteArray &  key)

Returns the value associated with the key.

◆ remove()

void TCache::remove ( const QByteArray &  key)

Removes the item that have the key from the cache.

◆ set()

bool TCache::set ( const QByteArray &  key,
const QByteArray &  value,
int  seconds 
)

Stores a new item with the key and a value in the cache and sets the timeout after a given number of seconds.

Friends And Related Symbol Documentation

◆ TWebApplication

friend class TWebApplication
friend

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