Class: Cache::Strategy::LFU::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

#freqObject

Returns the value of attribute freq

Returns:

  • (Object)

    the current value of freq



57
58
59
# File 'lib/cache/cache.rb', line 57

def freq
  @freq
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



57
58
59
# File 'lib/cache/cache.rb', line 57

def value
  @value
end