java 17
redis-cli
- Run Redis container
docker-compose up -d
- Run the app
./gradlew bootRun
- Connect to redis via redis-cli
redis-cli -h localhost -p 6379
- Create a key to evict event
SET test value
At this point you will get an event as
Redis pubsub event received: test