class ItemLimited
Public Class Methods
new(max_items)
click to toggle source
Calls superclass method
LRUCacher::new
# File lib/lru-cacher/item_limited.rb, line 3 def initialize(max_items) @max_items = max_items super() end
Public Instance Methods
over_threshold?()
click to toggle source
# File lib/lru-cacher/item_limited.rb, line 8 def over_threshold? @table.size > @max_items end