Pipeline Cache properties
Use cache expression language functions to retrieve cached data in your pipelines.
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 values. Use this function in the Alias when specifying the Alias value. Safe retrieval functions return null instead of an error if values are missing or incorrectly entered.
Functions
| 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 | cache.retrieve("alias", {"filter": "object"}) |
| Example |
Data in cache
Expression: Result: Expression: Result: Expression: Result: |
| 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 | cache.retrieveFirst("alias", {"filter": "object"}) |
| Example |
Data in cache
Expression: Result: Expression: Result: Expression: Result: |
| 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 null. The
entire document that has been stored and matches the filter criteria will be
returned. |
| Syntax | cache.retrieveAll("alias", {"filter": "object"}) |
| Example |
Data in cache
Expression: Result:
Expression: Result: Expression: Result: |
| 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 null. The
entire document that has been stored and matches the filter criteria will be
returned. |
| Syntax | cache.retrieveLast("alias", {"filter": "object"}) |
| Example |
Data in cache
Expression: Result: Expression: Result: Expression: Result: |
| 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 null.
If the filter criteria doesn't match any data, it will return
null. The entire document that has been stored and matches the
filter criteria will be returned. |
| Syntax | cache.safeRetrieve("alias", {"filter": "object"}) |
| Example |
Data in cache
Expression: Result: Expression: Result: Expression: Result: |
| 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 null.
If the filter criteria doesn't match any data, it will return
null. The entire document that has been stored and matches the
filter criteria will be returned. |
| Syntax | cache.safeRetrieveFirst("alias", {"filter": "object"}) |
| Example |
Data in cache
Expression: Result: Expression: Result: Expression: Result: |
| 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 null. If the
filter criteria doesn't match any data, it will return null.
The entire document that has been stored and matches the filter criteria will be
returned. |
| Syntax | cache.safeRetrieveLast("alias", {"filter": "object"}) |
| Example |
Data in cache
Expression: Result: Expression: Result: Expression: Result: |
| 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 null. If the
filter criteria doesn't match any data, it will return null.
The entire document that has been stored and matches the filter criteria will be
returned. |
| Syntax | cache.safeRetrieveAll("alias", {"filter": "object"}) |
| Example |
Data in cache
Expression: Result:
Expression: Result: Expression: Result: |