Module: LRUCache::Item

Included in:
Sentinel
Defined in:
lib/mega/lru_cache.rb

Overview

Mix this in your class to make LRU-managable.

Instance Attribute Summary collapse

Instance Attribute Details

#lru_keyObject

Returns the value of attribute lru_key.



48
49
50
# File 'lib/mega/lru_cache.rb', line 48

def lru_key
  @lru_key
end

#lru_nextObject

Returns the value of attribute lru_next.



48
49
50
# File 'lib/mega/lru_cache.rb', line 48

def lru_next
  @lru_next
end

#lru_prevObject

Returns the value of attribute lru_prev.



48
49
50
# File 'lib/mega/lru_cache.rb', line 48

def lru_prev
  @lru_prev
end