W3cubDocs

/Ember.js

IdentityMap Class

PRIVATE

Defined in: addon/-private/system/identity-map.js:3

Module: ember-data

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

clear

Defined in addon/-private/system/identity-map.js:34

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

retrieve (modelName) RecordMap

Defined in addon/-private/system/identity-map.js:15

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

© 2017 Yehuda Katz, Tom Dale and Ember.js contributors
Licensed under the MIT License.
http://emberjs.com/api/data/classes/IdentityMap.html