module Algorithmable::Cache

Public Instance Methods

new_lru_cache(size, heap = PrimitiveMaxHeap.new) click to toggle source
# File lib/algorithmable/cache.rb, line 10
def new_lru_cache(size, heap = PrimitiveMaxHeap.new)
  Imp.new size, heap
end
new_mru_cache(size, heap = PrimitiveMinHeap.new) click to toggle source
# File lib/algorithmable/cache.rb, line 14
def new_mru_cache(size, heap = PrimitiveMinHeap.new)
  Imp.new size, heap
end