home
  • Blog
  • Home
  • Projects
    • Ember
    • EmberData
    • Ember CLI
2.18
  • Packages
    • ember-data
  • Classes
    • DS.AbortError
    • DS.Adapter
    • DS.AdapterError
    • DS.AdapterPopulatedRecordArray
    • DS.BelongsToReference
    • DS.BooleanTransform
    • DS.BuildURLMixin
    • DS.ConflictError
    • DS.DateTransform
    • DS.EmbeddedRecordsMixin
    • DS.Errors
    • DS.FilteredRecordArray
    • DS.ForbiddenError
    • DS.HasManyReference
    • DS.InvalidError
    • DS.JSONAPIAdapter
    • DS.JSONAPISerializer
    • DS.JSONSerializer
    • DS.ManyArray
    • DS.Model
    • DS.NotFoundError
    • DS.NumberTransform
    • DS.PromiseArray
    • DS.PromiseManyArray
    • DS.PromiseObject
    • DS.RESTAdapter
    • DS.RESTSerializer
    • DS.RecordArray
    • DS.RecordReference
    • DS.RootState
    • DS.Serializer
    • DS.ServerError
    • DS.Store
    • DS.StringTransform
    • DS.TimeoutError
    • DS.Transform
    • DS.UnauthorizedError
    • Ember.Inflector

Class IdentityMap 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.


Methods

clear

Module: ember-data

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

Module: ember-data

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

modelName

a previously normalized modelName

returns
InternalModelMap

the InternalModelMap for the given modelName

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

On this page


Methods

  • clear
  • retrieve
Team Sponsors Security Legal Branding Community Guidelines
Twitter GitHub Discord Mastodon

If you want help you can contact us by email, open an issue, or get realtime help by joining the Ember Discord.

© Copyright 2026 - Tilde Inc.
Ember.js is free, open source and always will be.


Ember is generously supported by
blue Created with Sketch.