add prioritized cache wrapper
add a prioritized cache wrapper, for this issue: https://github.com/tikv/titan/issues/127
@yiwu-arbug sorry for a little late, I have update this PR to add a wrapper called PrioritizedCache, has two function HighPriCacheInsert and LowPriCacheInsert which can insert high and low cache priorized regardless of user provided option, and a interface GetCache to return the Cache ptr
Codecov Report
Merging #142 into master will increase coverage by
0.02%. The diff coverage isn/a.
@@ Coverage Diff @@
## master #142 +/- ##
==========================================
+ Coverage 85.49% 85.52% +0.02%
==========================================
Files 45 45
Lines 3419 3419
==========================================
+ Hits 2923 2924 +1
+ Misses 496 495 -1
@yiwu-arbug I have updated the code, please review again
Mind adding some very simple unit test? Like have a mock underlying Cache object that checks what's the priority pass to it on Insert.
As blob-specific cache priority is introduced, close it https://github.com/tikv/rocksdb/pull/354