【问题标题】:Spring Boot cache request latency measurementSpring Boot 缓存请求延迟测量
【发布时间】: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


【解决方案1】:

作为最终解决方案,我决定将JProfiler 与方法执行时间监控一起使用:

https://www.ej-technologies.com/resources/jprofiler/help/doc/main/methodCallRecording.html

【讨论】:

    猜你喜欢
    • 2014-02-17
    • 2018-01-14
    • 2015-08-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-01-08
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多