spring-boot-starter-redis-lock

Parent pom providing dependency and plugin management for applications built with Maven

License

License

Categories

Categories

Spring Boot Container Microservices Redis Data Databases
GroupId

GroupId

cn.yueshutong
ArtifactId

ArtifactId

spring-boot-starter-redis-lock
Last Version

Last Version

1.0.0.RELEASE
Release Date

Release Date

Type

Type

jar
Description

Description

spring-boot-starter-redis-lock
Parent pom providing dependency and plugin management for applications built with Maven
Project URL

Project URL

https://projects.spring.io/spring-boot/#/spring-boot-starter-parent/spring-boot-starter-redis-lock
Source Code Management

Source Code Management

https://github.com/yueshutong/spring-boot-starter-redis-lock.git

Download spring-boot-starter-redis-lock

How to add to project

<!-- https://jarcasting.com/artifacts/cn.yueshutong/spring-boot-starter-redis-lock/ -->
<dependency>
    <groupId>cn.yueshutong</groupId>
    <artifactId>spring-boot-starter-redis-lock</artifactId>
    <version>1.0.0.RELEASE</version>
</dependency>
// https://jarcasting.com/artifacts/cn.yueshutong/spring-boot-starter-redis-lock/
implementation 'cn.yueshutong:spring-boot-starter-redis-lock:1.0.0.RELEASE'
// https://jarcasting.com/artifacts/cn.yueshutong/spring-boot-starter-redis-lock/
implementation ("cn.yueshutong:spring-boot-starter-redis-lock:1.0.0.RELEASE")
'cn.yueshutong:spring-boot-starter-redis-lock:jar:1.0.0.RELEASE'
<dependency org="cn.yueshutong" name="spring-boot-starter-redis-lock" rev="1.0.0.RELEASE">
  <artifact name="spring-boot-starter-redis-lock" type="jar" />
</dependency>
@Grapes(
@Grab(group='cn.yueshutong', module='spring-boot-starter-redis-lock', version='1.0.0.RELEASE')
)
libraryDependencies += "cn.yueshutong" % "spring-boot-starter-redis-lock" % "1.0.0.RELEASE"
[cn.yueshutong/spring-boot-starter-redis-lock "1.0.0.RELEASE"]

Dependencies

provided (1)

Group / Artifact Type Version
org.springframework.boot : spring-boot-starter-data-redis jar 2.1.4.RELEASE

Project Modules

There are no modules declared in this project.

spring-boot-starter-redis-lock

SnowJean项目的衍生品,使用非常简单,前提是你的spring boot已经集成并开启redis。

Use

    @Autowired
    private RedisLock lock;

    //加锁
    lock.lock(key, value);
    
    //解锁
    lock.unlock(key, value);

Versions

Version
1.0.0.RELEASE
0.0.1.RELEASE