-
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: 1 comment 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.
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.