Class: SimpleFileCache::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/simple_file_cache.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



51
52
53
54
55
# File 'lib/simple_file_cache.rb', line 51

def initialize
  @cache_dir_path = '.'
  @cache_expiration_policy = :yesterday_or_earlier # :max_age
  @cache_max_age_in_seconds = nil
end

Instance Attribute Details

#cache_dir_pathObject

Returns the value of attribute cache_dir_path.



49
50
51
# File 'lib/simple_file_cache.rb', line 49

def cache_dir_path
  @cache_dir_path
end

#cache_expiration_policyObject

Returns the value of attribute cache_expiration_policy.



49
50
51
# File 'lib/simple_file_cache.rb', line 49

def cache_expiration_policy
  @cache_expiration_policy
end

#cache_max_age_in_secondsObject

Returns the value of attribute cache_max_age_in_seconds.



49
50
51
# File 'lib/simple_file_cache.rb', line 49

def cache_max_age_in_seconds
  @cache_max_age_in_seconds
end