- Docker
Redis light consists of two application: client and server. They both bundled into a single docker image which can be built by running following command:
$ docker build -t redislight .In order to run server:
$ docker run -p 9090:9090 redislightServer supports following options:
./server --help
Usage of server:
--mode, -m string
Storage options. One of [disk] (default "disk")
--port, -p int
Port to listen on (default 9090)In order to run client:
$ docker run redislight ./clientClient supports following options:
./client --help
Usage of client:
--host, -h string
Remote server address (default "127.0.0.1")
--port, -p int
Remote server port (default 9090)GET key - return value associated with proveded key or 'key is not exists' error
SET key value - create or update value associated with the key
DEL key - remove value associated with the key. If key is not exists, it will return 'not exists error'
- Go >= 1.11
- Docker
- Make
Clone this repository into GOPATH/src/{repository}/redislight:
$ git clone .../redislight.gitRun linters:
$ make checkRun tests(also will produce code coverage in coverage.out file):
$ make testsBuild:
$ make buildRun server:
$ make run