lib/cached_resource/configuration.rb in cached_resource-4.1.0 vs lib/cached_resource/configuration.rb in cached_resource-4.2.0
- old
+ new
@@ -18,18 +18,20 @@
# Initialize a Configuration with the given options, overriding any
# defaults. The following options exist for cached resource:
# :enabled, default: true
# :ttl, default: 604800
+ # :race_condition_ttl: 86400
# :ttl_randomization, default: false,
# :ttl_randomization_scale, default: 1..2,
# :collection_synchronize, default: false,
# :collection_arguments, default: [:all]
# :cache, default: Rails.cache or ActiveSupport::Cache::MemoryStore.new,
# :logger, default: Rails.logger or ActiveSupport::BufferedLogger.new(NilIO.new)
def initialize(options={})
super({
:enabled => true,
+ :race_condition_ttl => 86400,
:ttl => 604800,
:ttl_randomization => false,
:ttl_randomization_scale => 1..2,
:collection_synchronize => false,
:collection_arguments => [:all],
\ No newline at end of file