0

I want have a setup of redis where I write to master and read from slave, without any sentinel.

I can see spring does have an article for above here :

https://docs.spring.io/spring-data/redis/docs/2.2.0.M1/reference/html/#redis:write-to-master-read-from-replica

I am using @Cacheable annotation for caching, where do I specify that read should happen from master and write from slave?

Manas Saxena
  • 2,171
  • 6
  • 39
  • 58

1 Answers1

0

The write-to-master/read-from-slave is implemented in the lettuce redis client. It is transparent to your application code

dan carter
  • 4,158
  • 1
  • 33
  • 34