home
  • Blog
  • Home
  • Projects
    • Ember
    • EmberData
    • Ember CLI
1.13
  • Packages
    • ember-data
  • Namespaces
    • DS
    • Ember.Date
  • Classes
    • DS.AbortError
    • DS.ActiveModelAdapter
    • DS.ActiveModelSerializer
    • DS.Adapter
    • DS.AdapterError
    • DS.AdapterPopulatedRecordArray
    • DS.BooleanTransform
    • DS.BuildURLMixin
    • DS.DateTransform
    • DS.EmbeddedRecordsMixin
    • DS.Errors
    • DS.FilteredRecordArray
    • DS.FixtureAdapter
    • DS.InternalModel
    • DS.InvalidError
    • DS.JSONAPIAdapter
    • DS.JSONAPISerializer
    • DS.JSONSerializer
    • DS.ManyArray
    • DS.Model
    • DS.NumberTransform
    • DS.PromiseArray
    • DS.PromiseManyArray
    • DS.PromiseObject
    • DS.RESTAdapter
    • DS.RESTSerializer
    • DS.RecordArray
    • DS.RootState
    • DS.Serializer
    • DS.Store
    • DS.StringTransform
    • DS.TimeoutError
    • DS.Transform

Class ContainerInstanceCache private


Defined in: packages/ember-data/lib/system/store/container-instance-cache.js:9
Module: ember-data

The ContainerInstanceCache serves as a lazy cache for looking up instances of serializers and adapters. It has some additional logic for finding the 'fallback' adapter or serializer.

The 'fallback' adapter or serializer is an adapter or serializer that is looked up when the preferred lookup fails. For example, say you try to look up adapter:post, but there is no entry (app/adapters/post.js in EmberCLI) for adapter:post in the registry.

The fallbacks array passed will then be used; the first entry in the fallbacks array that exists in the container will then be cached for adapter:post. So, the next time you look up adapter:post, you'll get the adapter:application instance (or whatever the fallback was if adapter:application doesn't exist).


On this page

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.