Class: FastCache::Cache::Entry
- Inherits:
-
Object
- Object
- FastCache::Cache::Entry
- Defined in:
- lib/fast_cache/cache.rb
Instance Attribute Summary collapse
-
#expires_at ⇒ Object
readonly
Returns the value of attribute expires_at.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value, expires_at) ⇒ Entry
constructor
A new instance of Entry.
Constructor Details
#initialize(value, expires_at) ⇒ Entry
Returns a new instance of Entry.
165 166 167 168 |
# File 'lib/fast_cache/cache.rb', line 165 def initialize(value, expires_at) @value = value @expires_at = expires_at end |
Instance Attribute Details
#expires_at ⇒ Object (readonly)
Returns the value of attribute expires_at.
163 164 165 |
# File 'lib/fast_cache/cache.rb', line 163 def expires_at @expires_at end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
162 163 164 |
# File 'lib/fast_cache/cache.rb', line 162 def value @value end |