Class DataMapper::OrderedSet::Cache
In: lib/dm-core/support/ordered_set.rb
Parent: Object

The default cache used by {OrderedSet}

Uses a {Hash} as internal storage and enforces set semantics by calling eql? and hash on the set‘s entries.

@api private

Methods

key_for   valid?  

Included Modules

API

Classes and Modules

Module DataMapper::OrderedSet::Cache::API

Public Instance methods

Given an entry, return the key to be used in the cache

@param [Object] entry

  the entry to get the key for

@return [Object]

  the passed in entry

@api private

Tests if the given entry qualifies to be added to the cache

@param [Object] entry

  the entry to be checked

@return [true] true

@api private

[Validate]