spring-boot - Spring Boot 缓存请求延迟测量
问题描述
我正在使用带有 Redis 缓存的 Spring Boot 2:
implementation 'org.springframework.boot:spring-boot-starter-data-redis'
值通过@Cacheable("key")
注释存储在 Redis 中。我需要在访问 Redis 期间记录请求时间。可能吗?
解决方案
作为最终解决方案,我决定使用JProfiler
方法执行时间监控:
https://www.ej-technologies.com/resources/jprofiler/help/doc/main/methodCallRecording.html
推荐阅读
- google-apps-script - 如何使用 Google Apps 脚本将图表嵌入 Google 表格
- laravel - 根据非空值显示图标
- android - C++ 可用于 Android 和 iOS 上的 UI 开发
- java - Logback - same logger for two different levels
- ios - 使用包含 3 个项目的 url 方案快速打开另一个应用程序
- c# - 使用 LINQ 的 Where,转换为非 LINQ
- react-native - 如何编写一段适用于每个手机尺寸的样式代码(react-native)
- python - 使用 BeautifulSoup 只获取一个结果
- asp.net-core - nginx 的视频字节范围支持以支持 Safari Webkit iOS
- google-sheets - 计算没有空白单元格的行