rocksdb/cache
Maysam Yabandeh 4c9447d889 Add erase option to release cache
Summary:
This is useful when we put the entries in the block cache for accounting
purposes and do not expect it to be used after it is released. If the cache does not
erase the item in such cases not only the performance of cache is
negatively affected but the item's destructor not being called at the
time of release might violate the assumptions about the lifetime of the
object.

The new change adds a force_erase option to the Release method and
returns a boolean to indicate whehter the item is successfully deleted.
Closes https://github.com/facebook/rocksdb/pull/2180

Differential Revision: D4916032

Pulled By: maysamyabandeh

fbshipit-source-id: 94409a346069923cac9de8e57adc313b4ed46f28
2017-04-24 11:28:36 -07:00
..
cache_bench.cc Move some files under util/ to separate dirs 2017-04-05 19:09:16 -07:00
cache_test.cc Add erase option to release cache 2017-04-24 11:28:36 -07:00
clock_cache.cc Add erase option to release cache 2017-04-24 11:28:36 -07:00
clock_cache.h Move some files under util/ to separate dirs 2017-04-05 19:09:16 -07:00
lru_cache_test.cc Move some files under util/ to separate dirs 2017-04-05 19:09:16 -07:00
lru_cache.cc Add erase option to release cache 2017-04-24 11:28:36 -07:00
lru_cache.h Add erase option to release cache 2017-04-24 11:28:36 -07:00
sharded_cache.cc Add erase option to release cache 2017-04-24 11:28:36 -07:00
sharded_cache.h Add erase option to release cache 2017-04-24 11:28:36 -07:00