QByteArray value(const QByteArray &key);
void insert(const QByteArray &key, const QByteArray &value);
- bool clear();
+ void clear();
private:
LocalCache(const QByteArray &name);
QString cachePath(const QByteArray &key) const;
bool isCached(const QString &path);
- qint64 expire();
+ void expire();
#ifndef QT_NO_DEBUG_OUTPUT
void debugStats();
#endif
uint maxSeconds;
qint64 maxSize;
qint64 size;
- bool expiring;
+ QMutex mutex;
uint insertCount;
- struct QueueItem {
- QByteArray key;
- QByteArray value;
- };
- QVector<QueueItem> insertQueue;
#ifndef QT_NO_DEBUG_OUTPUT
uint hits;