diff options
Diffstat (limited to 'src/util/disk_cache.h')
-rw-r--r-- | src/util/disk_cache.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/util/disk_cache.h b/src/util/disk_cache.h index 7e9cb809b59..1f2bf3d9e7d 100644 --- a/src/util/disk_cache.h +++ b/src/util/disk_cache.h @@ -78,6 +78,12 @@ void disk_cache_destroy(struct disk_cache *cache); /** + * Remove the item in the cache under the name \key. + */ +void +disk_cache_remove(struct disk_cache *cache, cache_key key); + +/** * Store an item in the cache under the name \key. * * The item can be retrieved later with disk_cache_get(), (unless the item has @@ -151,6 +157,12 @@ disk_cache_put(struct disk_cache *cache, cache_key key, return; } +static inline void +disk_cache_remove(struct program_cache *cache, cache_key key) +{ + return; +} + static inline uint8_t * disk_cache_get(struct disk_cache *cache, cache_key key, size_t *size) { |