sfd
2025-05-23 b60b39fc30384a1fa75765e8e10f9ad3bffe9480
aps-common/aps-common-redis/src/main/java/com/aps/common/redis/service/RedisLockUtils.java
@@ -26,6 +26,16 @@
    /**
     * 判断是否存在锁
     * */
    public boolean existLock(String key,String value){
        if(null==this.redisTemplate.opsForValue().get(key)){
            return false;
        }
        return this.redisTemplate.opsForValue().get(key).equals(value);
    }
    /**
     *  加锁
     **/
    public Boolean getLock(String key,String value,Long timeoutSeconds){