| 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, |