MCPcopy Create free account
hub / github.com/cybozu/yrmcds / lock

Method lock

test/protocol_binary.cpp:390–395  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

388 }
389
390 void lock(const std::string& key, bool q) {
391 request req(q ? binary_command::LockQ : binary_command::Lock,
392 (std::uint16_t)key.size(), key.data(),
393 0, nullptr, 0, nullptr);
394 send(req.data(), req.length());
395 }
396
397 void unlock(const std::string& key, bool q) {
398 request req(q ? binary_command::UnlockQ : binary_command::Unlock,

Callers 1

AUTOTESTFunction · 0.45

Calls 3

sizeMethod · 0.45
dataMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected