How to Redis & Redisson with Kotlin
https://www.lotharschulz.info/2023/06/17/wonderful-redis-kotlin-awesome-with-redisson/
- Kotlin 96.3%
- Shell 3.7%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
|
||
| app | ||
| gradle/wrapper | ||
| .gitattributes | ||
| .gitignore | ||
| gradlew | ||
| gradlew.bat | ||
| README.md | ||
| settings.gradle.kts | ||
| start-docker-run-code-stop-docker.sh | ||
How to Redis & Redisson with Kotlin
./start-docker-run-code-stop-docker.sh
(*nix systems)
individual steps
start redis with docker
docker run -d --name my-redis-stack -p 6379:6379 -p 8001:8001 redis/redis-stack:latest
optional: connect with redis-cli:
docker exec -it my-redis-stack redis-cli
run the code
./gradlew run
stop redis with docker
docker stop my-redis-stack && docker rm my-redis-stack