Using Lettuce, how do we configure Spring Data Redis running on host x at port 6379 and slave running on the same or different host but at port 6380?
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
- Difference between Types.INTEGER and Types.NULL in
That's a feature which will be included in the upcoming Spring Data Redis 2.1 release. You would configure
LettuceConnectionFactory
similar to:Lettuce auto-discovers masters and slaves from a static (not managed with Redis Sentinel) setup.