Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 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 (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-11T13:57:25.000Z (5 months ago)
- Last Synced: 2024-08-11T20:54:23.010Z (5 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
[![Keep a Changelog v1.1.0 badge](https://img.shields.io/badge/changelog-Keep%20a%20Changelog%20v1.1.0-%23E05735)](https://github.com/fugerit-org/fj-client-redis/blob/master/CHANGELOG.md)
[![Maven Central](https://img.shields.io/maven-central/v/org.fugerit.java/fj-client-redis.svg)](https://mvnrepository.com/artifact/org.fugerit.java/fj-client-redis)
[![license](https://img.shields.io/badge/License-Apache%20License%202.0-teal.svg)](https://opensource.org/licenses/Apache-2.0)
[![code of conduct](https://img.shields.io/badge/conduct-Contributor%20Covenant-purple.svg)](https://github.com/fugerit-org/fj-universe/blob/main/CODE_OF_CONDUCT.md)
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=fugerit-org_fj-client-redis&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=fugerit-org_fj-client-redis)
[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=fugerit-org_fj-client-redis&metric=coverage)](https://sonarcloud.io/summary/new_code?id=fugerit-org_fj-client-redis)[![Java runtime version](https://img.shields.io/badge/run%20on-java%2011+-%23113366.svg?style=for-the-badge&logo=openjdk&logoColor=white)](https://universe.fugerit.org/src/docs/versions/java11.html)
[![Java build version](https://img.shields.io/badge/build%20on-java%2011+-%23ED8B00.svg?style=for-the-badge&logo=openjdk&logoColor=white)](https://universe.fugerit.org/src/docs/versions/java11.html)
[![Apache Maven](https://img.shields.io/badge/Apache%20Maven-3.9.0+-C71A36?style=for-the-badge&logo=Apache%20Maven&logoColor=white)](https://universe.fugerit.org/src/docs/versions/maven3_9.html)[![Download latest](https://img.shields.io/badge/download-latest%20release-1188ee.svg?style=for-the-badge&logo=openjdk&logoColor=white)](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
```