Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
如何使用Spring Cache处理redis异常?
我目前正在开发一个包含 Spring Data Redis 和 Spring Cache 的项目 在spring data redis中 我使用redis模板调用redis 我在 try catch 块中处理 redis 模板抛出的所有异常
springboot
Redis
SpringDataRedis
springcache
在采用数组或集合参数的方法上使用 Spring Cache 有哪些策略?
我想使用 Spring 的 Cache 抽象将方法注释为 Cacheable 但是 某些方法被设计为采用数组或参数集合并返回集合 例如 考虑使用此方法来查找实体 public Collection
Spring
caching
springcache
如何让spring缓存存储ResponseBody而不是中间对象
我将 spring 缓存与此方法一起使用 该方法以 JSON 形式返回查询值 RequestMapping getById ResponseBody Cacheable public HugeValue getHugeValueFromSl
Java
json
Spring
caching
springcache
Spring可缓存异步更新,同时返回旧缓存
有休息控制器 它调用 Cacheable方法来自 Service My CacheManager has expireAfterWrite超时 所以超时后使用rest gt service方法时 必须重写缓存 但问题是 如果同时有许多剩余调
Java
Spring
springboot
springcache
使用 Prometheus 监控 Spring Boot 缓存指标
我正在尝试使用 prometheus 来监控 spring boot 的一些缓存指标 缓存是用以下命令创建的 Cacheable我的配置如下 management endpoints web exposure include metrics
springboot
Prometheus
springbootactuator
springcache
Micrometer
带有注释和缓存的 Spring Batch
有谁有Spring Batch 使用注释 的好例子来缓存处理器可以访问的引用表 我只需要一个简单的缓存 运行一个返回一些 byte 的查询并将其保留在内存中直到作业执行 感谢有关此主题的任何帮助 Thanks A JobExecutionL
Spring
springboot
SpringBatch
springcache
Spring 的 AspectJ 模式缓存与 AspectJ 模式事务
我的问题与 Spring 的 AspectJ 模式有关 特别是如何启用它 交易管理 Caching 1 我注意到 为了启用AspectJ模式进行事务管理 我只需要执行以下操作 Configuration EnableTransactionM
AspectJ
SpringAOP
SpringDataJPA
springcache
Spring 缓存 - 忽略键的参数
我想缓存一个具有可选参数 下面示例中的用户代理 的简单 getter 的结果 如何在不考虑可选用户代理参数的情况下指示创建密钥 Cacheable value bookCache public Book getBooks RequestHe
Spring
caching
key
springcache
以实例变量和参数为键的 Spring 缓存
我正在使用 ehcache 来缓存方法结果 键必须是成员对象和方法参数的组合 我的课程看起来像这样 Class A private B b Cacheable value someCache key some key based on B
Java
Spring
ehcache
springcache
带有 Spring 缓存和咖啡因的 Spring 云网关
我有一个 Spring Cloud 网关 它将 API 剩余请求转发到一些微服务 我想缓存特定请求的响应 为此我写了这个过滤器 Component Slf4j public class CacheResponseGatewayFilterF
Spring
springboot
springcache
springcloudgateway
caffeinecache
将 Ehcache CacheManager (v 3.x) 转换为 Spring CacheManager,无需 XML 配置
我正在尝试在我的应用程序中使用 Ehcache 管理器 我想在没有 xml 配置的情况下设置它 我有下一个依赖项
Java
Spring
ehcache
springcache
ehcache3
并发调用缓存方法
我正在使用带有 Guava 缓存的 Spring 缓存抽象 我有一个带有 Cacheable 注释和参数 用作缓存键 的方法 用于将值放入缓存中 但该方法是在多线程环境中访问的 因此存在多个并发调用具有相同参数值的方法 因此 这意味着创建要
Java
Spring
caching
springcache
googleguavacache
带有自定义cacheResolver的spring缓存
我想要动态缓存名称和 spring4 1 允许 http docs spring io spring docs current spring framework reference html cache html 从 Spring 4 1
Spring
springdata
springcache
无法使用 YAML Spring Profile 禁用 @Cacheable
我创建了一个名为 mycache 的缓存 该缓存应用于我的服务中的方法 例如 Cacheable value mycache public String getValue String something breakpoint here 我
Java
Spring
springboot
ehcache
springcache
如何缓存 Spring Data JPA 投影
我正在使用 Spring Data JPA 存储库运行 Spring Boot 1 5 1 我已经在我的用户存储库中添加了一个方法 该方法使用 JPA 投影 UserProfile 效果很好 我现在希望在我的服务层中缓存该方法的结果 该层应
springboot
SpringDataJPA
springcache
过期时间@cacheable spring boot
我已经实现了缓存 现在我想添加过期时间 如何在 Spring Boot 中设置过期时间 Cacheable 这是一个代码片段 Cacheable value forecast unless result null 我这样使用生活黑客 Con
Java
caching
springcache
拦截org.springframework.cache.interceptor.CacheInterceptor#invoke的spring aop
我已经尝试过以下代码 但它不起作用 Component Aspect Order Integer MAX VALUE public class CacheAspect Around execution public org springfr
Java
Spring
AOP
Aspect
springcache
@Cacheable 不拦截方法,缓存始终为空
我有一个方法如下 Cacheable value SAMPLE public List
Java
Spring
springboot
caching
springcache
Spring MVC 的 ehcache 或 spring 缓存中的最佳缓存实践是什么?
计划在基于 Spring Web 的应用程序中实现静态数据的缓存机制 谁能解释一下哪种是最好的以及它是如何工作的 EhCache 弹簧缓存 免责声明 我是兵马俑 Software AG http www terracotta org员工 E
Java
Spring
SpringMVC
ehcache
springcache
如何在 Spring Data 存储库上测试 Spring 的声明式缓存支持?
我开发了一个Spring数据存储库 MemberRepository接口 扩展org springframework data jpa repository JpaRepository MemberRepository有一个方法 Cache
Spring
Testing
springdata
SpringDataJPA
springcache
1
2
»