Class: LowCardTables::LowCardTable::CacheExpiration::NoCachingExpirationPolicy

Inherits:
Object
  • Object
show all
Defined in:
lib/low_card_tables/low_card_table/cache_expiration/no_caching_expiration_policy.rb

Overview

This is a very simple cache-expiration policy that disables caching entirely – it makes the cache always stale, which means we will reload it from the database every single time.

Instance Method Summary collapse

Instance Method Details

#stale?(cache_time, current_time) ⇒ Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/low_card_tables/low_card_table/cache_expiration/no_caching_expiration_policy.rb', line 7

def stale?(cache_time, current_time)
  true
end