Implement PrioritizedCache
Implement PrioritizedCache, which wraps a single LRUCache, but have additional API to return child Cache instances that:
- HighPriCache: always insert into the cache with high-priority, regardless of user provided option
- LowPriCache: always insert into the cache with low-priority, regardless of user provided option
Part of https://github.com/tikv/tikv/issues/5742
cc @haoxiang47
Hi @yiwu-arbug , sorry for late for this PCP, I had simplily add a PR: https://github.com/tikv/rocksdb/pull/144 for this issue, add HighPriCache and LowPriCache two interface in rocksdb
Hi @yiwu-arbug , sorry for late for this PCP, I had simplily add a PR: tikv/rocksdb#144 for this issue, add HighPriCache and LowPriCache two interface in rocksdb
Thank much for the work! Commented on the PR.
As blob specific cache priority is introduced, close it https://github.com/tikv/rocksdb/pull/354