Class: FastCache::Cache::Entry

Inherits:
Object
  • Object
show all
Defined in:
lib/fast_cache/cache.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_atObject (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

#valueObject (readonly)

Returns the value of attribute value.



162
163
164
# File 'lib/fast_cache/cache.rb', line 162

def value
  @value
end