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 void insert(const QByteArray &key, const QByteArray &value);
25 LocalCache(const QByteArray &name);
26 QString cachePath(const QByteArray &key) const;
27 bool isCached(const QString &path);
29 #ifndef QT_NO_DEBUG_OUTPUT
41 #ifndef QT_NO_DEBUG_OUTPUT
47 #endif // LOCALCACHE_H