Exception: Volt::GenericPoolDeleteException

Inherits:
StandardError
  • Object
show all
Defined in:
lib/volt/utils/generic_pool.rb

Overview

GenericPool is a base class you can inherit from to cache items based on a lookup.

GenericPool assumes either a block is passed to lookup, or a #create method, that takes the path arguments and reutrns a new instance.

GenericPool can handle as deep of paths as needed. You can also lookup all of the items at a sub-path with #lookup_all

TODO: make the lookup/create threadsafe