Class CacheCapabilitiesManager
publicCacheCapabilitiesManager 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 createCache
hook.
Cache implementations should not need more than this API provides.
This class cannot be directly instantiated.
disconnectRecord (identifier) public
Defined in ../packages/store/src/-types/q/cache-capabilities-manager.ts:74
- 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.
hasRecord (identifier) Boolean public
Defined in ../packages/store/src/-types/q/cache-capabilities-manager.ts:86
- identifier
- returns
- Boolean
Use this method to determine if the Store has an instantiated record associated with an identifier.
notifyChange (identifier, namespace, key) public
Defined in ../packages/store/src/-types/q/cache-capabilities-manager.ts:97
- 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
Defined in ../packages/store/src/-types/q/cache-capabilities-manager.ts:63
- 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
.