-
In CacheLib, to write an object, we need to first allocate an memory and then write data to allocated memory and insert item handle into cache. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
My guess is for async read for NVM |
Beta Was this translation helpful? Give feedback.
-
Hi @skyelves. ItemHandle helps manage Item's lifetime. Async read from NVM like @1a1a11a is one example of that. |
Beta Was this translation helpful? Give feedback.
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.