Skip to content

feat: add CacheSlot cached-state check#97

Open
chasingegg wants to merge 1 commit into
zilliztech:masterfrom
chasingegg:feat/cache-slot-is-cached
Open

feat: add CacheSlot cached-state check#97
chasingegg wants to merge 1 commit into
zilliztech:masterfrom
chasingegg:feat/cache-slot-is-cached

Conversation

@chasingegg

Copy link
Copy Markdown
Collaborator

Summary

  • Add CacheSlot::IsCached(cid_t) to check whether a cell is already LOADED or CACHED without triggering load, pin, or LRU touch behavior.
  • Add a thread-safe ListNode helper for loaded/cached state checks.
  • Cover loaded, cached, evicted, and out-of-range cid behavior in CacheSlot tests.

Test Plan

  • ASAN_OPTIONS=detect_leaks=0 ./cachinglayer_test

Note: cmake --build build --target cachinglayer_test currently reconfigures and fails in this environment because OpenBLASConfig.cmake is missing; verification used the existing build artifacts after recompiling touched objects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant