spring-boot-starter-redis-lock
SnowJean项目的衍生品,使用非常简单,前提是你的spring boot已经集成并开启redis。
Use
@Autowired
private RedisLock lock;
//加锁
lock.lock(key, value);
//解锁
lock.unlock(key, value);
License |
License |
---|---|
Categories |
CategoriesSpring Boot Container Microservices Redis Data Databases |
GroupId | GroupIdcn.yueshutong |
ArtifactId | ArtifactIdspring-boot-starter-redis-lock |
Last Version | Last Version1.0.0.RELEASE |
Release Date | Release Date |
Type | Typejar |
Description |
Descriptionspring-boot-starter-redis-lock
Parent pom providing dependency and plugin management for applications
built with Maven
|
Project URL |
Project URL |
Source Code Management |
Source Code Management |
<!-- 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"]
Group / Artifact | Type | Version |
---|---|---|
org.springframework.boot : spring-boot-starter-data-redis | jar | 2.1.4.RELEASE |
SnowJean项目的衍生品,使用非常简单,前提是你的spring boot已经集成并开启redis。
@Autowired
private RedisLock lock;
//加锁
lock.lock(key, value);
//解锁
lock.unlock(key, value);