IdentityMap Class addon/-private/system/identity-map.js:3


PRIVATE

IdentityMap is a custom storage map for records by modelName used by DS.Store.

Show:

Methods

Show:

clear

Clears the contents of all known RecordMaps, but does not remove the RecordMap instances.

retrieve

(modelName) RecordMap

Retrieves the RecordMap for a given modelName, creating one if one did not already exist. This is similar to getWithDefault or get on a MapWithDefault

Parameters:

modelName
a previously normalized modelName

Returns:

RecordMap
the RecordMap for the given modelName