home
  • Blog
  • Home
  • Projects
    • Ember
    • EmberData
    • Ember CLI
4.12
  • Packages
    • @ember-data/adapter
    • @ember-data/adapter/error
    • @ember-data/adapter/json-api
    • @ember-data/adapter/rest
    • @ember-data/canary-features
    • @ember-data/debug
    • @ember-data/deprecations
    • @ember-data/experimental-preview-types
    • @ember-data/graph
    • @ember-data/json-api
    • @ember-data/legacy-compat
    • @ember-data/model
    • @ember-data/request
    • @ember-data/request/fetch
    • @ember-data/serializer
    • @ember-data/serializer/json
    • @ember-data/serializer/json-api
    • @ember-data/serializer/rest
    • @ember-data/store
    • @ember-data/tracking
  • Classes
    • <Interface> Adapter
    • <Interface> Cache
    • <Interface> Handler
    • <Interface> Serializer
    • AbortError
    • Adapter
    • AdapterError
    • BelongsToReference
    • BooleanTransform
    • BuildURLMixin
    • Cache
    • CacheManager
    • CacheStoreWrapper
    • CanaryFeatureFlags
    • ConflictError
    • CurrentDeprecations
    • DateTransform
    • DebugLogging
    • EmbeddedRecordsMixin
    • Errors
    • Fetch
    • ForbiddenError
    • Future
    • HasManyReference
    • IdentifierCache
    • InvalidError
    • JSONAPIAdapter
    • JSONAPISerializer
    • JSONSerializer
    • ManyArray
    • Model
    • NotFoundError
    • NotificationManager
    • NumberTransform
    • PromiseArray
    • PromiseManyArray
    • PromiseObject
    • RESTAdapter
    • RESTSerializer
    • RecordArray
    • RecordReference
    • RequestManager
    • RequestStateService
    • SchemaService
    • Serializer
    • ServerError
    • Snapshot
    • SnapshotRecordArray
    • StableRecordIdentifier
    • Store
    • StringTransform
    • TimeoutError
    • Transform
    • UnauthorizedError

Class CacheStoreWrapper public


Defined in: ../../ember-data-types/q/cache-store-wrapper.ts:14
Module: @ember-data/store

CacheStoreWrapper provides encapsulated API access to the minimal subset of the Store's functionality that Cache implementations should interact with. It is provided to the Store's createRecordDataFor and createCache hooks.

Cache implementations should not need more than this API provides.

This class cannot be directly instantiated.


Methods

disconnectRecord (identifier) public

Module: @ember-data/store

Defined in ../ember-data-types/q/cache-store-wrapper.ts:94

identifier
StableRecordIdentifier

Signal to the store that the specified record may be considered fully removed from the cache. Generally this means that not only does no data exist for the identified resource, no known relationships still point to it either.

getSchemaDefinitionService public

Module: @ember-data/store

Defined in ../ember-data-types/q/cache-store-wrapper.ts:40

Provides access to the SchemaDefinitionService instance for this Store instance.

The SchemaDefinitionService can be used to query for information about the schema of a resource.

hasRecord (identifier) : Boolean public

Module: @ember-data/store

Defined in ../ember-data-types/q/cache-store-wrapper.ts:123

identifier
returns
Boolean

Use this method to determine if the Store has an instantiated record associated with an identifier.

notifyChange (identifier, namespace, key) public

Module: @ember-data/store

Defined in ../ember-data-types/q/cache-store-wrapper.ts:207

identifier
StableRecordIdentifier
namespace
'attributes' | 'relationships' | 'identity' | 'errors' | 'meta' | 'state'
key
String|undefined

Notify subscribers of the NotificationManager that cache state has changed.

attributes and relationships do not require a key, but if one is specified it is assumed to be the name of the attribute or relationship that has been updated.

No other namespaces currently expect the key argument.

setRecordId (identifier;, id;) public

Module: @ember-data/store

Defined in ../ember-data-types/q/cache-store-wrapper.ts:82

identifier;
StableRecordIdentifier
id;
String

Update the id for the record corresponding to the identifier This operation can only be done for records whose id is null.

Properties

identifierCache public

Module: @ember-data/store

Defined in ../ember-data-types/q/cache-store-wrapper.ts:28

Provides access to the IdentifierCache instance for this Store instance.

The IdentifierCache can be used to peek, generate or retrieve a stable unique identifier for any resource.

On this page


Methods

  • disconnectRecord
  • getSchemaDefinitionService
  • hasRecord
  • notifyChange
  • setRecordId

Properties

  • identifierCache
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 2025 - Tilde Inc.
Ember.js is free, open source and always will be.


Ember is generously supported by
blue Created with Sketch.