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
- Host: GitHub
- URL: https://github.com/lotharschulz/redis_kotlin
- Owner: lotharschulz
- Created: 2023-02-22T16:07:18.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-29T20:02:06.000Z (almost 3 years ago)
- Last Synced: 2025-04-23T14:00:01.036Z (about 1 year ago)
- Topics: kotlin, nosql, persistence, redis, redisson
- Language: Kotlin
- Homepage: https://www.lotharschulz.info/2023/06/17/wonderful-redis-kotlin-awesome-with-redisson/
- Size: 148 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```