Class CacheManager
public
Module:
@ember-data/store
The CacheManager wraps a Cache enforcing that only the public API surface area is exposed.
Hence, it is the value of Store.cache
, wrapping
the cache instance returned by Store.createCache
.
It handles translating between cache versions when necessary, for instance when a Store is configured to use both a v1 and a v2 cache depending on some heuristic.
Starting with the v2 spec, the cache is designed such that it must be implemented as a singleton.
Methods
- changedAttrs
- changedRelationships
- clientDidCreate
- commitWasRejected
- didCommit
- diff
- dump
- fork
- getAttr
- getErrors
- getRelationship
- hasChangedAttrs
- hasChangedRelationships
- hydrate
- isDeleted
- isDeletionCommitted
- isEmpty
- isNew
- merge
- mutate
- patch
- peek
- peekRequest
- put
- rollbackAttrs
- rollbackRelationships
- setAttr
- setIsDeleted
- unloadRecord
- upsert
- willCommit
Properties
No documented items
Events
No documented items