mirror of https://github.com/ByConity/ByConity
fix LRU cache definition
This commit is contained in:
parent
9cafeb9e85
commit
7576cb2c18
|
@ -29,7 +29,7 @@ struct TrivialWeightFunction
|
|||
/// Cache starts to evict entries when their total weight exceeds max_size and when expiration time of these
|
||||
/// entries is due.
|
||||
/// Value weight should not change after insertion.
|
||||
template <typename TKey, typename TMapped, typename HashFunction = std::hash<TMapped>, typename WeightFunction = TrivialWeightFunction<TMapped>>
|
||||
template <typename TKey, typename TMapped, typename HashFunction = std::hash<TKey>, typename WeightFunction = TrivialWeightFunction<TMapped>>
|
||||
class LRUCache
|
||||
{
|
||||
public:
|
||||
|
|
Loading…
Reference in New Issue