We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6122ab9 + 1c18489 commit e29cbbfCopy full SHA for e29cbbf
examples/multitier_cache/main.cpp
@@ -57,7 +57,7 @@ bool put(CacheKey key, const std::string& value) {
57
if (!handle) {
58
return false; // cache may fail to evict due to too many pending writes
59
}
60
- std::memcpy(handle->getWritableMemory(), value.data(), value.size());
+ std::memcpy(handle->getMemory(), value.data(), value.size());
61
gCache_->insertOrReplace(handle);
62
return true;
63
0 commit comments