Skip to content

Commit 8ed8997

Browse files
vinser52byrnedj
authored andcommitted
Fix deprecation warning in multitier example
1 parent b14f6fc commit 8ed8997

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/multitier_cache/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ bool put(CacheKey key, const std::string& value) {
5757
if (!handle) {
5858
return false; // cache may fail to evict due to too many pending writes
5959
}
60-
std::memcpy(handle->getWritableMemory(), value.data(), value.size());
60+
std::memcpy(handle->getMemory(), value.data(), value.size());
6161
gCache_->insertOrReplace(handle);
6262
return true;
6363
}

0 commit comments

Comments
 (0)