Implements a cache using a parameterizable strategy and a storage. The protocol that the store must understand is:
fetch(key) -> val has_key?(key) delete(key) -> val each {|key, val| }
Methods
Public Class methods
new(strategy, store=Hash.new, store_on_update=false)
[ source ]
Public Instance methods
Alias for fetch
Alias for store
delete(key)
[ source ]
has_key?(key)
[ source ]