最近看了一个老项目(2018年的),发现其中用 Redis 来实现分布式锁🔒。代码如下 👇// jedis public String lock(String lockName, long acquireTimeout) { return lockWithTimeout(lockName