titan icon indicating copy to clipboard operation
titan copied to clipboard

Implement PrioritizedCache

Open yiwu-arbug opened this issue 6 years ago • 3 comments

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

yiwu-arbug avatar Dec 09 '19 04:12 yiwu-arbug

cc @haoxiang47

yiwu-arbug avatar Dec 09 '19 04:12 yiwu-arbug

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

haoxiang47 avatar Feb 02 '20 11:02 haoxiang47

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.

yiwu-arbug avatar Feb 02 '20 23:02 yiwu-arbug

As blob specific cache priority is introduced, close it https://github.com/tikv/rocksdb/pull/354

Connor1996 avatar Jan 31 '24 07:01 Connor1996