...
Use the following reference tables for descriptions and examples of the functions that you can use with the Cache Pipelines feature. The Pipeline Property Cache Pipelines comprises a field set of Alias and pipeline Pipeline values. Use this function in the Alias when specifying the Alias value. Safe retrieval functions differ from the others in that safe retrieval returns return null instead of an error if values are missing or incorrectly entered.
Functions
Cfm tabs page | ||||||||
---|---|---|---|---|---|---|---|---|
|
...
Description
...
| ||||||||||||||
Description:This function retrieves the first matching object from the specified cache alias |
...
based on the provided filter conditions |
...
. |
...
If the cache |
...
isn't defined in the |
...
pipeline cache settings, the function |
...
generates an error. |
...
If the filter criteria |
...
don’t match with any data, it returns null. The entire stored document that aligns with the filter criteria is returned. Syntax |
...
: |
...
Examples
Example: Data in cache |
...
Expression: |
...
Result: |
...
|
...
|
...
|
...
|
...
|
...
|
...
Expression: Result: |
...
Expression: |
...
Result: |
...
Expression: cache.retrieve("data",
{"id": 1, "num": 10})
Result:
Code Block |
---|
{"id": 1, "name": "Test", "num": 10} |
cache.retrieveFirst
...
Description
...
Cfm tabs page | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||
Description:This function retrieves the first matching object from the specified cache alias |
...
based on the provided filter conditions |
...
. |
...
If the cache |
...
isn't defined in the |
...
pipeline cache settings, the function |
...
generates an error. |
...
If the filter criteria |
...
don’t match with any data, it returns null. The entire stored document that aligns with the filter criteria is returned. Syntax |
...
: Examples |
...
: Data in cache |
...
Expression: |
...
Result: |
...
|
...
|
...
|
...
|
...
|
...
|
...
Expression: |
...
Result: |
...
Expression: |
...
Result: |
Cfm tabs page | ||
---|---|---|
|
...
Description
...
| |||||||||||||
Description: This function returns all matching objects from the specified cache alias using the filter conditions as provided |
...
. |
...
If the cache hasn’t been defined in the |
...
pipeline cache settings, the function |
...
will throw an error. |
...
If the filter criteria doesn’t match any data, it |
...
will return Syntax |
...
: |
...
Examples |
...
: Data in cache |
...
Expression: |
...
|
...
Result:
Expression: |
...
|
...
Result: |
...
Expression: |
...
|
...
Result: |
cache.retrieveAll
...
Description
Cfm tabs page | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||
Description: This function returns |
...
the last matching |
...
object from the specified cache alias using the filter conditions as provided. |
...
If the cache hasn’t been defined in the |
...
pipeline cache settings, the function |
...
will throw an error. |
...
If the filter criteria doesn’t match any data, it |
...
will return Syntax |
...
: |
...
|
...
Examples
Example: Data in cache |
...
Expression: |
...
|
...
Result |
...
: |
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
Expression: |
...
|
...
Result: |
...
Expression: |
...
|
...
Result: |
Cfm tabs page | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||
Description |
...
: This function returns the first matching object from the specified cache alias using the filter conditions as provided. |
...
If the cache hasn’t been defined in the |
...
pipeline cache settings, the function |
...
will return |
...
If the filter criteria |
...
doesn't match any data, it |
...
will return Syntax |
...
: Examples |
...
: Data in cache |
...
Expression: |
...
Result: |
...
|
...
|
...
|
...
|
...
|
...
|
...
Expression: |
...
Result: |
...
Expression: |
...
Result: |
...
Cfm tabs page | |||||||||
---|---|---|---|---|---|---|---|---|---|
|
...
Description
| |||||
Description: This function returns the first matching object from the specified cache alias using the filter conditions as provided. |
...
If the cache hasn’t been defined in the |
...
pipeline cache settings, the function |
...
will return |
...
If the filter criteria |
...
doesn't match any data, it |
...
will return Syntax |
...
: Examples |
...
: Data in cache |
...
Expression: |
...
Result:
Expression: |
...
Result: |
...
Expression: |
...
Result: |
...
Cfm tabs page | |||||||
---|---|---|---|---|---|---|---|
|
...
Description
| |||||||
Description: This function returns the last matching object from the specified cache alias using the filter conditions as provided. |
...
If the cache hasn’t been defined in the |
...
pipeline cache settings, the function |
...
will return |
...
If the filter criteria |
...
doesn't match any data, it |
...
will return Syntax |
...
: Examples |
...
: Data in cache |
...
Expression: |
...
Result: |
...
|
...
|
...
|
...
|
...
|
...
|
...
Expression: |
...
Result: |
...
Expression: |
...
Result: |
...
Cfm tabs page | ||
---|---|---|
|
...
Description
| ||||||||||
Description: This function returns all |
...
matching objects from the specified cache alias using the filter conditions as provided |
...
. |
...
If the cache hasn’t been defined in the |
...
pipeline cache settings, the function |
...
will return |
...
If the filter criteria |
...
doesn't match any data, it |
...
will return Syntax |
...
: Examples |
...
: Data in cache |
...
Expression: |
...
Result:
|
...
Expression: |
...
Result: |
...
Expression: |
...
Result: |
...
|