Class: QaServer::MonitorCacheService

Inherits:
Object
  • Object
show all
Defined in:
app/services/qa_server/monitor_cache_service.rb

Class Method Summary collapse

Class Method Details

.cache_expiryFloat

Returns number of seconds until cache should expire.

Returns:

  • (Float)

    number of seconds until cache should expire



7
8
9
# File 'app/services/qa_server/monitor_cache_service.rb', line 7

def cache_expiry
  monitoring_expires_at - QaServer::TimeService.current_time
end