mhgbrown / cached_resource

Caching for ActiveResource
MIT License
80 stars 28 forks source link

race_condition_ttl #25

Closed Daniel-ltw closed 8 years ago

Daniel-ltw commented 8 years ago

Are we handling this?

Could be added as something in the configuration?

http://guides.rubyonrails.org/caching_with_rails.html#activesupport-cache-store

Daniel-ltw commented 8 years ago
+ :race_condition_ttl => 604800,
result = cached_resource.cache.write(key, object, :race_condition_ttl => cached_resource.race_condition_ttl, :expires_in => cached_resource.generate_ttl)