6#include <userver/dist_lock/dist_lock_strategy.hpp>
7#include <userver/storages/mongo/collection.hpp>
19 DistLockStrategy(
Collection collection, std::string lock_name,
22 void Acquire(std::chrono::milliseconds lock_ttl,
23 const std::string& locker_id)
override;
25 void Release(
const std::string& locker_id)
override;
29 std::string lock_name_;
30 std::string owner_prefix_;