Skip to content

The reason for the ItemHandle #72

Answered by haowu14
skyelves asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @skyelves. ItemHandle helps manage Item's lifetime. Async read from NVM like @1a1a11a is one example of that.
But if your question is why CacheLib needs to allocate before insert, it's because CacheLib uses slab allocation and manages its own memory.

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
3 replies
@sathyaphoenix
Comment options

@skyelves
Comment options

@sathyaphoenix
Comment options

Comment options

You must be logged in to vote
2 replies
@sathyaphoenix
Comment options

@skyelves
Comment options

Answer selected by skyelves
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants