rocksdb/cache
Yi Wu b32d087dbb Move MemoryAllocator option from Cache to BlockBasedTableOptions (#4676)
Summary:
Per offline discussion with siying, `MemoryAllocator` and `Cache` should be decouple. The idea is that memory allocator handles memory allocation, while cache handle cache policy.

It is normal that external cache libraries pack couple the two components for better optimization. If we want to integrate with such library in the future, we can make a wrapper of the library implementing both `Cache` and `MemoryAllocator` interface.
Pull Request resolved: https://github.com/facebook/rocksdb/pull/4676

Differential Revision: D13047662

Pulled By: yiwu-arbug

fbshipit-source-id: cd42e246d80ab600b4de47d073f7d2db308ce6dd
2018-11-13 13:48:38 -08:00
..
cache_bench.cc comment unused parameters to turn on -Wunused-parameter flag 2018-04-12 17:59:16 -07:00
cache_test.cc Update all unique/shared_ptr instances to be qualified with namespace std (#4638) 2018-11-09 11:19:58 -08:00
clock_cache.cc comment unused parameters to turn on -Wunused-parameter flag 2018-04-12 17:59:16 -07:00
clock_cache.h Change RocksDB License 2017-07-15 16:11:23 -07:00
lru_cache.cc Move MemoryAllocator option from Cache to BlockBasedTableOptions (#4676) 2018-11-13 13:48:38 -08:00
lru_cache.h Move MemoryAllocator option from Cache to BlockBasedTableOptions (#4676) 2018-11-13 13:48:38 -08:00
lru_cache_test.cc LRUCache midpoint insertion 2018-05-24 15:57:33 -07:00
sharded_cache.cc Move MemoryAllocator option from Cache to BlockBasedTableOptions (#4676) 2018-11-13 13:48:38 -08:00
sharded_cache.h Move MemoryAllocator option from Cache to BlockBasedTableOptions (#4676) 2018-11-13 13:48:38 -08:00