spring-guides / gs-spring-data-reactive-redis

Accessing Data Reactively with Redis :: Learn how to reactively interface with Redis and Spring Data

Home Page:https://spring.io/guides/gs/spring-data-reactive-redis

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Redis database running before starting this project...

zapjelly opened this issue · comments

In case this is any help to anyone trying this project

make sure to install and start redis database before starting this project :)
https://medium.com/@petehouston/install-and-config-redis-on-mac-os-x-via-homebrew-eb8df9a4f298

Minimal config for Docker (docker-compose.yml)

version: '3'

volumes:
  dbdata_redis:
    driver: local

services:
  redis:
    image: redis:5.0.3-alpine
    ports:
      - 6379:6379
    volumes:
      - dbdata_redis:/data
    command:
      - --appendonly yes

This guide's documentation is really is misleading. I assumed that using Reactive Redis caused the Redis instance to be in-memory, like H2. As @zapjelly says, there is nothing in the documentation to indicate a seperate installation.
I see on Stack Overflow (Embedded Redis for Spring Boot) that there are embeddable Redis projects that could solve this.

Fixed in fb00b4e