Method: Kennel::FileCache#initialize
- Defined in:
- lib/kennel/file_cache.rb
#initialize(file, cache_version) ⇒ FileCache
8 9 10 11 12 13 |
# File 'lib/kennel/file_cache.rb', line 8 def initialize(file, cache_version) @file = file @cache_version = cache_version @now = Time.now.to_i @expires = @now + (30 * 24 * 60 * 60) # 1 month end |