-
|
The HybridCache part of CacheLib is very intersting and I'm considering implementing similar thing in my Go cache package. I'm not expert of C++ and can't find answer in documentation, so I think ask here is the best. So my question is, does HybridCache support any type of value? From the documentation I think HybridCache will copy memory data to NVM, what if value is a struct contains pointer or vector members, will HybridCache copy pointer address? Currently my Go package is generic so value type can be anything, I think I need to limit value types to make HybridCache work in Go. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
|
Hybrid cache (and traditional cachelib) doesn't support types. It's just byte strings so no pointers allowed there. Object-cache is only used for DRAM cache (no flash) and you can cache c++ objects. |
Beta Was this translation helpful? Give feedback.
-
|
Closing this discussion as it has been inactive. If this is still relevant, then please create a new discussion post and we will get back to you as soon as we can. Thank you! |
Beta Was this translation helpful? Give feedback.
Hybrid cache (and traditional cachelib) doesn't support types. It's just byte strings so no pointers allowed there.
Object-cache is only used for DRAM cache (no flash) and you can cache c++ objects.