Class: LowCardTables::LowCardTable::CacheExpiration::UnlimitedCacheExpirationPolicy
- Inherits:
-
Object
- Object
- LowCardTables::LowCardTable::CacheExpiration::UnlimitedCacheExpirationPolicy
- Defined in:
- lib/low_card_tables/low_card_table/cache_expiration/unlimited_cache_expiration_policy.rb
Overview
This is a very simple cache-expiration policy that makes the cache last forever – it will never be reloaded from disk, unless you explicitly flush it.
Instance Method Summary collapse
Instance Method Details
#stale?(cache_time, current_time) ⇒ Boolean
7 8 9 |
# File 'lib/low_card_tables/low_card_table/cache_expiration/unlimited_cache_expiration_policy.rb', line 7 def stale?(cache_time, current_time) false end |