Borges::LRUCache (Class)

In: lib/Borges/Utilities/LRUCache.rb
Parent: Object

A least recently used cache

Methods

fetch   new   size   store  

Constants

DEFAULT_CAPACITY = 20

Attributes

capacity  [RW] 

Public Class methods

Create a new LRUCache that can accomodate up to capacity objects

Public Instance methods

[Validate]