Support for `expires_at` option in ActiveSupport::Cache::Store

45 views
Skip to first unread message

Jose Camacho

unread,
May 28, 2016, 1:47:58 AM5/28/16
to Ruby on Rails: Core
Add `expires_at` to expire cache similar to `expire_in`

```
  <% cache object, expires_at: object.created_at + 1.month do %>
    <!-- something -->
  <% end %>
```

I'm not sure if this is possible or if it breaks something else, but I can't find it anything about this in the cache guides.

Thanks

DHH

unread,
May 28, 2016, 8:37:48 AM5/28/16
to Ruby on Rails: Core
Sounds good to me!
Reply all
Reply to author
Forward
0 new messages