Giter Site home page Giter Site logo

fj-client-redis's Introduction

Simple redis client

Keep a Changelog v1.1.0 badge Maven Central license code of conduct Quality Gate Status Coverage

Java runtime version Java build version Apache Maven

Download latest

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 :
java -jar target/dist-fj-client-redis-*.jar --redis-url ${REDIS-URL} --mode gui
  • set :
java -jar target/dist-fj-client-redis-*.jar --redis-url ${REDIS-URL} --key ${KEY-TO-SET} --value ${VALUE-TO-SET}
  • get :
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 :

Creating Redis 7 container :

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 :

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 :

java -jar target/dist-fj-client-redis-*.jar --redis-url redis://localhost --mode gui

test set :

java -jar target/dist-fj-client-redis-*.jar --redis-url redis://localhost --key test-key-1 --value test-value-1

test get :

java -jar target/dist-fj-client-redis-*.jar --redis-url redis://localhost --key test-key-1

fj-client-redis's People

Contributors

fugerit79 avatar mttfranci avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.