Class: QaServer::PerformanceDatatableCache
- Inherits:
-
Object
- Object
- QaServer::PerformanceDatatableCache
- Includes:
- CacheKeys
- Defined in:
- app/cache_processors/qa_server/performance_datatable_cache.rb
Constant Summary
Constants included from CacheKeys
CacheKeys::PERFORMANCE_DATATABLE_DATA_CACHE_KEY, CacheKeys::SCENARIO_RUN_FAILURE_DATA_CACHE_KEY, CacheKeys::SCENARIO_RUN_HISTORY_DATA_CACHE_KEY, CacheKeys::SCENARIO_RUN_HISTORY_UP_DOWN_DATA_CACHE_KEY, CacheKeys::SCENARIO_RUN_SUMMARY_DATA_CACHE_KEY
Class Method Summary collapse
-
.data(force: false) ⇒ Object
Retrieve performance datatable data from the cache.
Class Method Details
.data(force: false) ⇒ Object
Retrieve performance datatable data from the cache
24 25 26 27 28 29 30 31 |
# File 'app/cache_processors/qa_server/performance_datatable_cache.rb', line 24 def self.data(force: false) Rails.cache.fetch(PERFORMANCE_DATATABLE_DATA_CACHE_KEY, expires_in: QaServer::CacheExpiryService.cache_expiry, race_condition_ttl: 5.minutes, force: force) do QaServer.config.monitor_logger.debug("(QaServer::PerformanceDatatableCache) - CALCULATING performance datatable stats (force: #{force})") performance_data_service.calculate_datatable_data end end |