n8/multi_fetch_fragments — pull request #4 by nthj (2012-12-12 23:06:27+00:00)
Title: Add "cache_options" key, which is forwarded to MemCached.  Used for "expires_in: 3.days" functionality

I often have data that goes stale, even if the cache-key is the same. For example, I'll render "3 days ago", which needs to expire after a day. Or, I'll pull in the build-status into our dev bar from CircleCI. No cache-key, but I only want to poll every 5 minutes.

This pull request adds support for the key "cache_options" in the render call. Any options passed in are forwarded to the Rails.cache.write call, which will take care of forwarding on to MemCached. More options are described in the [Rails Caching guide](http://guides.rubyonrails.org/caching_with_rails.html#activesupport-cache-store).