| 1369 | } |
| 1370 | |
| 1371 | std::string Server::GetLastRandomKeyCursor() { |
| 1372 | std::string cursor; |
| 1373 | std::lock_guard<std::mutex> guard(last_random_key_cursor_mu_); |
| 1374 | cursor = last_random_key_cursor_; |
| 1375 | return cursor; |
| 1376 | } |
| 1377 | |
| 1378 | void Server::SetLastRandomKeyCursor(const std::string &cursor) { |
| 1379 | std::lock_guard<std::mutex> guard(last_random_key_cursor_mu_); |