Я разрабатывал Spring Boot + Spring Data Redis
пример.Я следовал 8,9.Постоянные частичные обновления ссылки: https://docs.spring.io/spring-data/data-redis/docs/current/reference/html/#redis.repositories.partial-updates. Но мне не очень понятно, что template.update(update);
- это какой API?
PartialUpdate<Person> update = new PartialUpdate<Person>("e2c7dcee", Person.class)
.set("firstname", "mat")
.set("address.city", "emond's field")
.del("age");
template.update(update);
update = new PartialUpdate<Person>("e2c7dcee", Person.class)
.set("address", new Address("caemlyn", "andor"))
.set("attributes", singletonMap("eye-color", "grey"));
template.update(update);
update = new PartialUpdate<Person>("e2c7dcee", Person.class)
.refreshTtl(true);
.set("expiration", 1000);
template.update(update);