Class: SolidQueueGuard::Health::Cache Private
- Inherits:
-
Object
- Object
- SolidQueueGuard::Health::Cache
- Defined in:
- lib/solid_queue_guard/health/cache.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Class Method Summary collapse
- .fetch ⇒ Object private
Instance Method Summary collapse
- #fetch ⇒ Object private
Class Method Details
.fetch ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
7 8 9 |
# File 'lib/solid_queue_guard/health/cache.rb', line 7 def self.fetch new.fetch end |
Instance Method Details
#fetch ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
11 12 13 14 15 |
# File 'lib/solid_queue_guard/health/cache.rb', line 11 def fetch Rails.cache.fetch(cache_key, expires_in: SolidQueueGuard.config.health_cache_ttl) do build_payload(previous_status: read_cached_status) end end |