An open API service indexing awesome lists of open source software.

https://github.com/lotharschulz/redis_kotlin

How to Redis & Redisson with Kotlin
https://github.com/lotharschulz/redis_kotlin

kotlin nosql persistence redis redisson

Last synced: about 2 months ago
JSON representation

How to Redis & Redisson with Kotlin

Awesome Lists containing this project

README

          

# How to Redis & Redisson with Kotlin

```shell
./start-docker-run-code-stop-docker.sh
```
([*nix](https://en.wikipedia.org/wiki/Unix-like) systems)

---

_individual steps_

### start redis with docker

```shell
docker run -d --name my-redis-stack -p 6379:6379 -p 8001:8001 redis/redis-stack:latest
```

optional: connect with redis-cli:

```shell
docker exec -it my-redis-stack redis-cli
```

### run the code

```shell
./gradlew run
```

### stop redis with docker

```shell
docker stop my-redis-stack && docker rm my-redis-stack
```