Skip to content

Commit

Permalink
Optimize the description in the README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Alpha2J committed Feb 10, 2023
1 parent 880ac6a commit 43904ec
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
# DistributedLock

[![Maven Central](https://img.shields.io/maven-central/v/site.hellooo/hellooo-distributedlock)](https://img.shields.io/maven-central/v/site.hellooo/hellooo-distributedlock)
[![GitHub license](https://img.shields.io/github/license/hellooo-stack/hellooo-distributedlock)](https://img.shields.io/github/license/hellooo-stack/hellooo-distributedlock)
![Build](https://img.shields.io/github/actions/workflow/status/hellooo-stack/hellooo-distributedlock/maven.yml)
![Code Size](https://img.shields.io/github/languages/code-size/hellooo-stack/hellooo-distributedlock)
![Maven Central](https://img.shields.io/maven-central/v/site.hellooo/hellooo-distributedlock)
![GitHub license](https://img.shields.io/github/license/hellooo-stack/hellooo-distributedlock)

DistributedLock is a lightweight distributed lock framework that provides reliable consistency features. It can be used with only the Lock interface.


# Features
- Reentrant locking
- Reentrant distributed locking
- Supports tryLock(), lock(), unlock() operations
- Supports lock leasing

Expand All @@ -21,7 +23,7 @@ Step one: Add maven dependency
</dependency>
```

Step two: Add customize configuration by annotation
Step two: lock your resources with Lock.lock()
```java
public class Main {
public static void main(String[] args) {
Expand Down
10 changes: 6 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@
<version>0.0.5-GA</version>

<properties>
<!-- <project.build.sourceEncoding>UTF8</project.build.sourceEncodin> -->
<project.build.sourceEncoding>UTF8</project.build.sourceEncoding>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<jedis.version>4.2.3</jedis.version>
<junit.version>4.13.2</junit.version>
<assertj-core.version>3.23.1</assertj-core.version>
<mockito-core.version>4.6.1</mockito-core.version>
</properties>
<dependencies>
<dependency>
Expand All @@ -24,18 +26,18 @@
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13.2</version>
<scope>test</scope>
<scope>${junit.version}</scope>
</dependency>
<dependency>
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
<version>3.23.1</version>
<version>${assertj-core.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>4.6.1</version>
<version>${mockito-core.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
Expand Down

0 comments on commit 43904ec

Please sign in to comment.