Частичное обновление в Redis - это какой API?

Я развивался Spring Boot + Spring Data Redis пример. Я следовал 8,9. Постоянные частичные обновления ссылки: https://docs.spring.io/spring-data/data-redis/docs/current/reference/html/. Но мне не очень понятно, что 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);

0 ответов

Другие вопросы по тегам