Allow caching of disk cache entries in RAM

This commit is contained in:
Kovid Goyal
2021-02-18 10:22:42 +05:30
parent e0620fbb1d
commit 0341b64748
4 changed files with 85 additions and 10 deletions

View File

@@ -49,7 +49,7 @@ remove_from_cache(GraphicsManager *self, const ImageAndFrame x) {
static inline bool
read_from_cache(const GraphicsManager *self, const ImageAndFrame x, void **data, size_t *sz) {
char key[CACHE_KEY_BUFFER_SIZE];
return read_from_disk_cache_simple(self->disk_cache, CK(x), data, sz);
return read_from_disk_cache_simple(self->disk_cache, CK(x), data, sz, false);
}
static inline size_t