| 547 | } |
| 548 | |
| 549 | bool 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 | |
| 559 | bool MemcacheResponse::PopSet(uint64_t* cas_value) { |
| 560 | return PopStore(policy::MC_BINARY_SET, cas_value); |
no test coverage detected