我正在使用redis + spring并尝试更新现有缓存
@Cacheable(value = "project")
public Project getProjectById(BigDecimal id){...}
@Caching(put = { @CachePut(value = "project", key = "#projectModel.id")})
public Project updateProject(Project projectModel)
{...}
注意: - Cacheable工作正常,只有cacheput无效。