新增:trylock 尝试获取锁,并立即返回加锁结果

This commit is contained in:
2023-10-21 11:57:29 +08:00
parent 4fc7121b28
commit b80dc78cce
4 changed files with 36 additions and 18 deletions

View File

@@ -161,6 +161,7 @@ func (s *ZBus) loadLock() {
}
s._lock(&Lock{
cmd: "lock",
key: split[0],
uuid: split[1],
duration: duration,