Go to the documentation of this file.
20#ifndef KSHAREDDATACACHE_H
21#define KSHAREDDATACACHE_H
79 unsigned defaultCacheSize,
80 unsigned expectedItemSize = 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);
KSharedDataCache(const QString &cacheName, unsigned defaultCacheSize, unsigned expectedItemSize=0)
Attaches to a shared cache, creating it if necessary.
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by
doxygen 1.14.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.