Class CacheProfiler

java.lang.Object
io.leandev.appfuse.ehcache.CacheProfiler

public class CacheProfiler extends Object

Ehcache 快取效能分析器

提供 Ehcache 快取的統計資訊查詢功能。

Since:
1.0
  • Constructor Details

    • CacheProfiler

      public CacheProfiler()
  • Method Details

    • getStatisticsService

      protected org.ehcache.core.spi.service.StatisticsService getStatisticsService()
      取得統計服務
      Returns:
      Ehcache 統計服務實例
    • getCacheStatistics

      public org.ehcache.core.statistics.CacheStatistics getCacheStatistics(String name)
      取得指定快取的統計資訊
      Parameters:
      name - 快取名稱
      Returns:
      快取統計資訊
    • getAllCacheStatistics

      public List<org.ehcache.core.statistics.CacheStatistics> getAllCacheStatistics()
      取得所有快取的統計資訊
      Returns:
      所有快取統計資訊的列表