7 * @brief Not thread-safe
11 static LocalCache *instance(const char *name);
13 static QByteArray hash(const QByteArray &s);
15 const QByteArray &getName() const { return name; }
17 void setMaxSeconds(uint value) { maxSeconds = value; }
18 void setMaxSize(uint value) { maxSize = value; }
20 QByteArray value(const QByteArray &key);
21 QByteArray possiblyStaleValue(const QByteArray &key);
22 void insert(const QByteArray &key, const QByteArray &value);
26 LocalCache(const QByteArray &name);
27 QString cachePath(const QByteArray &key) const;
28 bool isCached(const QString &path);
30 #ifndef QT_NO_DEBUG_OUTPUT
42 #ifndef QT_NO_DEBUG_OUTPUT
48 #endif // LOCALCACHE_H