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.
1 parent b14f6fc commit 8ed8997Copy full SHA for 8ed8997
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