https://github.com/fugerit-org/fj-client-redis
Simple Redis Client based on Lettuce io
https://github.com/fugerit-org/fj-client-redis
Last synced: about 2 months ago
JSON representation
Simple Redis Client based on Lettuce io
- Host: GitHub
- URL: https://github.com/fugerit-org/fj-client-redis
- Owner: fugerit-org
- License: apache-2.0
- Created: 2022-12-06T11:39:28.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-11T13:57:25.000Z (11 months ago)
- Last Synced: 2025-04-06T23:34:34.343Z (3 months ago)
- Language: Java
- Size: 71.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Simple redis client
[](https://github.com/fugerit-org/fj-client-redis/blob/master/CHANGELOG.md)
[](https://mvnrepository.com/artifact/org.fugerit.java/fj-client-redis)
[](https://opensource.org/licenses/Apache-2.0)
[](https://github.com/fugerit-org/fj-universe/blob/main/CODE_OF_CONDUCT.md)
[](https://sonarcloud.io/summary/new_code?id=fugerit-org_fj-client-redis)
[](https://sonarcloud.io/summary/new_code?id=fugerit-org_fj-client-redis)[](https://universe.fugerit.org/src/docs/versions/java11.html)
[](https://universe.fugerit.org/src/docs/versions/java11.html)
[](https://universe.fugerit.org/src/docs/versions/maven3_9.html)[](https://github.com/fugerit-org/fj-client-redis/releases/download/v1.1.0/dist-fj-client-redis-1.1.0.jar)
*Status*
Currently support only a single set or get operation at command line or a simple GUI## Quickstart
### Build
`mvn clean install -P singlepackage`
or build & test :
`mvn clean install -P test,singlepackage`
NOTE: tests needs containers environment available (through testcontainers).
So are disabled by default and cam be enabled adding the 'test' profile.### Run
- gui :
```shell
java -jar target/dist-fj-client-redis-*.jar --redis-url ${REDIS-URL} --mode gui
```- set :
```shell
java -jar target/dist-fj-client-redis-*.jar --redis-url ${REDIS-URL} --key ${KEY-TO-SET} --value ${VALUE-TO-SET}
```- get :
```shell
java -jar target/dist-fj-client-redis-*.jar --redis-url ${REDIS-URL} --key ${KEY-TO-SEARH}
```## Running redis test container
The client had been tested running redis on [docker hub](https://hub.docker.com/_/redis) :
### Creating Redis 7 container :
```shell
docker run -it --rm -p 6379:6379 --name REDIS7 -d redis:7.2-alpine redis-server --save 60 1 --loglevel warning
```### Or creating Redis 5 container :
```shell
docker run -it --rm -p 6379:6379 --name REDIS5 -d redis:5.0-alpine redis-server --save 60 1 --loglevel warning`
```## Sample commands on local container :
### test gui :
```shell
java -jar target/dist-fj-client-redis-*.jar --redis-url redis://localhost --mode gui
```### test set :
```shell
java -jar target/dist-fj-client-redis-*.jar --redis-url redis://localhost --key test-key-1 --value test-value-1
```### test get :
```shell
java -jar target/dist-fj-client-redis-*.jar --redis-url redis://localhost --key test-key-1
```