TreeFrogFramework: 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 () |
The TCache class stores items so that can be served faster.
◆ ~TCache()
◆ clear()
Removes all items from the cache.
◆ 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.
◆ TWebApplication
The documentation for this class was generated from the following files:
- src/tcache.h
- src/tcache.cpp