1
0
mirror of https://github.com/charlienet/go-mixed.git synced 2025-07-17 16:12:42 +08:00
Files
go-mixed/locker
2024-05-28 04:23:30 +08:00
..
2024-05-28 04:23:30 +08:00
2024-05-28 04:23:30 +08:00
2024-05-28 04:23:30 +08:00
2024-05-28 04:23:30 +08:00
2024-05-28 04:23:30 +08:00
2024-05-28 04:17:26 +08:00
2024-05-28 04:17:26 +08:00
2024-05-28 04:23:30 +08:00
2024-05-28 04:23:30 +08:00
2024-05-28 04:23:30 +08:00
2024-05-28 04:23:30 +08:00
2022-06-07 10:57:42 +08:00
2024-05-28 04:23:30 +08:00
2024-05-28 04:08:50 +08:00

同步锁

EmptyLocker 空锁 RWLocker, 读写锁 SpinLocker, 旋转锁

锁可以添加一个外部存储成为分布式锁。WithRedis, WithZookeeper

单例锁

资源锁

分布式锁 在锁的基础上添加分布式存储升级为分布式锁

locker.WithRedis() locker.WithZookeeper()