IdentityMap

IdentityMap Class

PRIVATE

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

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:35

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

retrieve (modelName) InternalModelMap

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

Retrieves the InternalModelMap 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:

InternalModelMap
the InternalModelMap for the given modelName

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

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部