Interface: RefsCache
Cache containing already synced models instances.
Extends
Methods
clear()
clear():
Promise
<void
>
Forget all models' instances.
Returns
Promise
<void
>
Inherited from
Source
find()
find(
type
,id
):Promise
<null
|ModelInstance
>
Retrieve a model instance from cache.
Parameters
• type: string
• id: ModelIdType
Returns
Promise
<null
| ModelInstance
>
Inherited from
Source
forget()
forget(
type
,id
):Promise
<void
>
Forget a model's instance.
Parameters
• type: string
• id: ModelIdType
Returns
Promise
<void
>
Inherited from
Source
forgetAll()
forgetAll(
type
):Promise
<void
>
Forget all model's instances.
Parameters
• type: string
Returns
Promise
<void
>
Inherited from
Source
put()
put(
type
,id
,instance
):Promise
<void
>
Put a model instance inside cache.
Parameters
• type: string
• id: ModelIdType
• instance: ModelInstance
Returns
Promise
<void
>