Class: RefsCache
core.RefsCache
Implements
Constructors
constructor
• new RefsCache(config?
)
Parameters
Name | Type |
---|---|
config? | RefsCacheConfig |
Defined in
src/core/cache/refsCache.ts:12
Properties
instances
• Private
Readonly
instances: default
<string
, ModelIdType
, unknown
>
Defined in
src/core/cache/refsCache.ts:8
mode
• Private
mode: RefsCacheMode
<unknown
> = weakRefCacheMode
Defined in
src/core/cache/refsCache.ts:10
Methods
clear
▸ clear(): Promise
<void
>
Returns
Promise
<void
>
Implementation of
CacheI.clear
Defined in
src/core/cache/refsCache.ts:49
configure
▸ configure(config?
, override?
): void
Parameters
Name | Type | Default value |
---|---|---|
config? | RefsCacheConfig | undefined |
override | boolean | true |
Returns
void
Defined in
src/core/cache/refsCache.ts:17
find
▸ find(type
, id
): Promise
<null
| ModelInstance
>
Parameters
Name | Type |
---|---|
type | string |
id | ModelIdType |
Returns
Promise
<null
| ModelInstance
>
Implementation of
CacheI.find
Defined in
src/core/cache/refsCache.ts:21
forget
▸ forget(type
, id
): Promise
<void
>
Parameters
Name | Type |
---|---|
type | string |
id | ModelIdType |
Returns
Promise
<void
>
Implementation of
CacheI.forget
Defined in
src/core/cache/refsCache.ts:41
forgetAll
▸ forgetAll(type
): Promise
<void
>
Parameters
Name | Type |
---|---|
type | string |
Returns
Promise
<void
>
Implementation of
CacheI.forgetAll
Defined in
src/core/cache/refsCache.ts:45
put
▸ put(type
, id
, instance
): Promise
<void
>
Parameters
Name | Type |
---|---|
type | string |
id | ModelIdType |
instance | ModelInstance |
Returns
Promise
<void
>
Implementation of
CacheI.put
Defined in
src/core/cache/refsCache.ts:37