refs #494 Get the filename used for serializing a specific cached value, or list of all files used by whole cache.

This commit is contained in:
Mathew Sutcliffe
2015-10-22 02:02:28 +01:00
parent 8a3cb5f661
commit 0ca4797bcf
7 changed files with 72 additions and 0 deletions

View File

@@ -46,6 +46,16 @@ namespace BlackCore
return dir;
}
QString CDataCache::filenameForKey(const QString &key)
{
return persistentStore() + "/" + CValueCache::filenameForKey(key);
}
QStringList CDataCache::enumerateStore() const
{
return enumerateFiles(persistentStore());
}
QString lockFileError(const QLockFile &lock)
{
switch (lock.error())