class RDF::Util::Cache

A ‘Hash`-like cache that holds only weak references to the values it caches, meaning that values contained in the cache can be garbage collected. This allows the cache to dynamically adjust to changing memory conditions, caching more objects when memory is plentiful, but evicting most objects if memory pressure increases to the point of scarcity.

While this cache is something of an internal implementation detail of RDF.rb, some external libraries do currently make use of it as well, including [SPARQL](github.com/ruby-rdf/sparql/) and [Spira](github.com/ruby-rdf/spira). Do be sure to include any changes here in the RDF.rb changelog.

@see RDF::URI.intern @see en.wikipedia.org/wiki/Weak_reference @since 0.2.0