Module: RedBlocks::CachePolicy
- Defined in:
- lib/red_blocks/cache_policy.rb
Class Method Summary collapse
Class Method Details
.daily ⇒ Object
7 8 9 10 11 12 |
# File 'lib/red_blocks/cache_policy.rb', line 7 def self.daily # 15.minutes is padding for daily update. # This will avoid to expire the cache before # the update has completed. 24.hours + 15.minutes end |
.hourly ⇒ Object
14 15 16 17 18 19 |
# File 'lib/red_blocks/cache_policy.rb', line 14 def self.hourly # 3.minutes is padding for hourly update. # This will avoid to expire the cache before # the update has completed. 1.hour + 3.minutes end |
.none ⇒ Object
3 4 5 |
# File 'lib/red_blocks/cache_policy.rb', line 3 def self.none 0 end |