KDECore
Go to the documentation of this file.
20 #ifndef KSHAREDDATACACHE_H
21 #define KSHAREDDATACACHE_H
79 unsigned defaultCacheSize,
80 unsigned expectedItemSize = 0);
87 NoEvictionPreference = 0,
97 EvictionPolicy evictionPolicy()
const;
105 void setEvictionPolicy(EvictionPolicy newPolicy);
114 bool insert(
const QString &key,
const QByteArray &data);
132 bool find(
const QString &key, QByteArray *destination)
const;
146 static void deleteCache(
const QString &cacheName);
156 bool contains(
const QString &key)
const;
163 unsigned totalSize()
const;
171 unsigned freeSize()
const;
182 unsigned timestamp()
const;
215 void setTimestamp(
unsigned newTimestamp);
A simple data cache which uses shared memory to quickly access data stored on disk.
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:47:09 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.