【问题标题】:Does @CachePut annotation in springboot replace the existing key with new key in Datagird?Spring Boot中的@CachePut注释是否用Datagrid中的新键替换现有键? 【发布时间】:2021-09-24 06:59:52 【问题描述】: springboot中的@CachePut注解是否会用数据网格中的新key替换现有key? 【问题讨论】: 标签: java spring-boot datagrid 【解决方案1】: 操作PUT 用于更新。您可以选择更新保留旧密钥或交替使用新密钥。 阅读全文 https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/cache/annotation/CachePut.html#key-- https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/cache/annotation/CachePut.html#keyGenerator-- 【讨论】: