Class: Cache::Strategy::LRU::Item

Inherits:
Struct show all
Defined in:
lib/cache/cache.rb

Instance Attribute Summary collapse

Method Summary

Methods inherited from Struct

#restore_snapshot, #take_snapshot

Instance Attribute Details

#timeObject

Returns the value of attribute time

Returns:

  • (Object)

    the current value of time



81
82
83
# File 'lib/cache/cache.rb', line 81

def time
  @time
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



81
82
83
# File 'lib/cache/cache.rb', line 81

def value
  @value
end