6#include <userver/dist_lock/dist_lock_strategy.hpp>
7#include <userver/storages/mongo/collection.hpp>
11namespace storages::mongo {
19 DistLockStrategy(
Collection collection, std::string lock_name, std::string owner);
21 void Acquire(std::chrono::milliseconds lock_ttl,
const std::string& locker_id)
override;
23 void Release(
const std::string& locker_id)
override;
27 std::string lock_name_;
28 std::string owner_prefix_;