Shopify / response_bank

Simple response caching for Ruby applications
http://www.shopify.com
MIT License
135 stars 18 forks source link

Add env option for using a shorter duration on versioned cache #46

Closed DrewMartin closed 3 years ago

DrewMartin commented 3 years ago

Part of https://github.com/Shopify/kernel-merch/issues/117

This adds an option in the env which will shorten the cache expiry for the versioned cache. It has no effect on the unversioned cache as that should live longer to prevent thundering herd. expires_in is defined as a parameter that cache stores should accept (even if they ignore it) so this should be safe to add to the call.

DrewMartin commented 3 years ago

This is required for https://github.com/Shopify/storefront-renderer/pull/5624

DrewMartin commented 3 years ago

/shipit

DrewMartin commented 3 years ago

🤦

DrewMartin commented 3 years ago

Anyone know the process for making a new release?