【发布时间】:2020-12-13 01:42:49
【问题描述】:
我正在使用带有 Redis 缓存的 Spring Boot 2:
implementation 'org.springframework.boot:spring-boot-starter-data-redis'
值通过@Cacheable("key") 注解存储在 Redis 中。
我需要在访问 Redis 期间记录请求时间。有可能吗?
【问题讨论】:
-
您找到解决方案了吗?
-
@PSinha 为这个问题添加了答案。我没有找到更好的解决方案
标签: spring-boot logging redis