Module: Moneta::ExpiresSupport
- Included in:
- Adapters::ActiveSupportCache, Adapters::Cassandra, Adapters::MemcachedDalli, Adapters::MemcachedNative, Adapters::Mongo, Adapters::Redis, Expires
- Defined in:
- lib/moneta/expires_support.rb
Overview
This mixin handles the calculation of expiration times.
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
53 54 55 56 |
# File 'lib/moneta/expires_support.rb', line 53 def included(base) base.supports(:expires) if base.respond_to?(:supports) base.config :expires end |