HierarchicalKV icon indicating copy to clipboard operation
HierarchicalKV copied to clipboard

Update score when found old scores for find_or_insert APIs

Open jiashuy opened this issue 9 months ago • 0 comments

To priority those latest accessed keys, we should update the score when found them in API find_or_insert. Including APIs:

  • find_or_insert(at least 3 kernels)
  • find_or_insert_ptr(at least 1 kernel). We don't need to update the score for API find, because API find usually used with insert_and_evict, the later API will update the score for keys found previous.

jiashuy avatar Mar 21 '25 10:03 jiashuy