• A
    Add a stat to count secondary cache hits (#8666) · add68bd2
    anand76 提交于
    Summary:
    Add a stat for secondary cache hits. The ```Cache::Lookup``` API had an unused ```stats``` parameter. This PR uses that to pass the pointer to a ```Statistics``` object that ```LRUCache``` uses to record the stat.
    
    Pull Request resolved: https://github.com/facebook/rocksdb/pull/8666
    
    Test Plan: Update a unit test in lru_cache_test
    
    Reviewed By: zhichao-cao
    
    Differential Revision: D30353816
    
    Pulled By: anand1976
    
    fbshipit-source-id: 2046f78b460428877a26ffdd2bb914ae47dfbe77
    add68bd2
clock_cache.cc 30.0 KB