Class EntityDefinitionCache
このページの翻訳はAIによって自動的に行われました。可能な限り正確な翻訳を心掛けていますが、原文と異なる表現や解釈が含まれる場合があります。正確で公式な情報については、必ず英語の原文をご参照ください。
Caches definition in memory.
Constructors
EntityDefinitionCache()
Declaration
Functions
load(definition)
Load the specified definition into the cache.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| definition |
The entity definition |
get(key)
Retrieve the definition with specified name or id from the cache.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| key |
The definition name or definition id |
Returns
| Type | Description |
|---|---|
|
The cached definition or null |
loadAll(definitions, loadAllIndividually, loadAsGroup)
Loads all definitions into the cache.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| definitions |
An array of entity definitions | |
| loadAllIndividually |
Flag indicating whether to load the definitions individually or not | |
| loadAsGroup |
Key to be used to store the array of definitions, or false to not load the array |
getAll(group)
Retrieves an array of definitions that was cached with the specified group key.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| group |
The key with which the group of definitions was stored |
invalidate(key)
Invalidates/removes the definition with specified name or id from the cache.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| key |
The definition name or definition id |