MCPcopy Create free account
hub / github.com/apache/brpc / Prepend

Method Prepend

src/brpc/memcache.cpp:549–557  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

547}
548
549bool MemcacheRequest::Prepend(
550 const butil::StringPiece& key, const butil::StringPiece& value,
551 uint32_t flags, uint32_t exptime, uint64_t cas_value) {
552 if (value.empty()) {
553 LOG(ERROR) << "value to prepend must be non-empty";
554 return false;
555 }
556 return Store(policy::MC_BINARY_PREPEND, key, value, flags, exptime, cas_value);
557}
558
559bool MemcacheResponse::PopSet(uint64_t* cas_value) {
560 return PopStore(policy::MC_BINARY_SET, cas_value);

Callers 2

wait_for_butexFunction · 0.45
butex_wait_from_pthreadFunction · 0.45

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected