https://github.com/whilein/wredis
Lightweight and fast redis client for java
https://github.com/whilein/wredis
Last synced: 6 months ago
JSON representation
Lightweight and fast redis client for java
- Host: GitHub
- URL: https://github.com/whilein/wredis
- Owner: whilein
- License: apache-2.0
- Created: 2022-02-09T11:14:59.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-03-05T12:06:56.000Z (over 4 years ago)
- Last Synced: 2024-04-23T02:26:46.516Z (about 2 years ago)
- Language: Java
- Size: 210 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# wredis
## Использование
```java
public class Main {
public static void main(final String[] args) {
Redis redis = new Redis(new Redis.Config.Builder(new InetSocketAddress(host, port))
.auth(username, password)
.connectTimeout(1, TimeUnit.SECONDS)
.build());
redis.command("PING").flushAndRead();
boolean pong = "PONG".equals(redis.nextString());
}
}
```
## Добавить в свой проект
### Maven
```xml
io.github.whilein
wredis
0.1.12
```
### Gradle
```groovy
dependencies {
implementation 'io.github.whilein:wredis:0.1.12'
}
```