Issue #151 fixed memory caching

This commit is contained in:
Jindra Petk
2013-07-11 16:54:00 +02:00
parent bd4edb13a8
commit 4b2ee2da42

View File

@@ -87,7 +87,12 @@ public class Cache {
}
public boolean contains(Object key) {
return cacheFiles.containsKey(key);
if (storageType == STORAGE_FILES) {
return cacheFiles.containsKey(key);
} else if (storageType == STORAGE_MEMORY) {
return cacheMemory.containsKey(key);
}
return false;
}
public void clear() {