$customHeader
Skip to end of banner
Go to start of banner

Pipeline Cache Properties (Private Beta)

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 23 Next »

In this article

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 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"})

Examples: Data in cache "alias":

[
  {"id": 1, "name": "Test", "num": 10},
  {"id": 2, "name": "Test 2", "num": 20},
  {"id": 3, "name": "Test 3", "num": 20}
]

Expressioncache.safeRetrieveAll("alias", {"num": 20})

Result:

[
  {"id": 2, "name": "Test 2", "num": 20},
  {"id": 3, "name": "Test 3", "num": 20},
}  

Expression: cache.safeRetrieveAll("alias", {"num": 15})

Resultnull

Expression: cache.retrieveLast("test", {"num": 20})

Result: null

  • No labels