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.
Instance Attribute Summary collapse
-
#default_expires ⇒ Object
Returns the value of attribute default_expires.
Class Method Summary collapse
Instance Attribute Details
#default_expires ⇒ Object
Returns the value of attribute default_expires.
6 7 8 |
# File 'lib/moneta/expires_support.rb', line 6 def default_expires @default_expires end |
Class Method Details
.included(base) ⇒ Object
55 56 57 |
# File 'lib/moneta/expires_support.rb', line 55 def included(base) base.supports(:expires) if base.respond_to?(:supports) end |