Module: Algorithmable::Cache
- Defined in:
- lib/algorithmable/cache.rb,
lib/algorithmable/cache/imp.rb,
lib/algorithmable/cache/methods.rb,
lib/algorithmable/cache/primitive_max_heap.rb,
lib/algorithmable/cache/primitive_min_heap.rb
Defined Under Namespace
Modules: Methods
Instance Method Summary collapse
- #new_lru_cache(size, heap = PrimitiveMaxHeap.new) ⇒ Object
- #new_mru_cache(size, heap = PrimitiveMinHeap.new) ⇒ Object
Instance Method Details
#new_lru_cache(size, heap = PrimitiveMaxHeap.new) ⇒ Object
10 11 12 |
# 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) ⇒ Object
14 15 16 |
# File 'lib/algorithmable/cache.rb', line 14 def new_mru_cache(size, heap = PrimitiveMinHeap.new) Imp.new size, heap end |