Class Cache
public
Defined in:
../json-api/src/-private/cache.ts:106
Module:
@ember-data/json-api
A JSON:API Cache implementation.
What cache the store uses is configurable. Using a different implementation can be achieved by implementing the store's createCache hook.
This is the cache implementation used by ember-data
.
import Cache from '@ember-data/json-api';
import Store from '@ember-data/store';
export default class extends Store {
createCache(wrapper) {
return new Cache(wrapper);
}
}
Methods
- changedAttrs
- changedRelationships
- clientDidCreate
- commitWasRejected
- didCommit
- diff
- dump
- getAttr
- getErrors
- getRelationship
- hasChangedAttrs
- hasChangedRelationships
- hydrate
- isDeleted
- isDeletionCommitted
- isEmpty
- isNew
- merge
- mutate
- patch
- peek
- peekRequest
- put
- rollbackAttrs
- rollbackRelationships
- setAttr
- setIsDeleted
- unloadRecord
- upsert
- willCommit
Properties
Events
No documented items