module Motor::Alerts::ScheduledAlertsCache
Constants
- CACHE_STORE
Public Instance Methods
all()
click to toggle source
# File lib/motor/alerts/scheduled_alerts_cache.rb, line 10 def all ActiveRecord::Base.logger.silence do CACHE_STORE.fetch(Motor::Alert.all.maximum(:updated_at)) do clear Motor::Alert.all.active.enabled.to_a end end end
clear()
click to toggle source
# File lib/motor/alerts/scheduled_alerts_cache.rb, line 20 def clear CACHE_STORE.clear end