CacheConfig | R Documentation |
Configuration class to enable caching in pipeline workflow.
enable_caching
To enable step caching.
expire_after
If step caching is enabled, a timeout also needs to defined.
config
Configures caching in pipeline steps.
new()
Initialize Workflow CacheConfig If caching is enabled, the pipeline attempts to find a previous execution of a step that was called with the same arguments. Step caching only considers successful execution. If a successful previous execution is found, the pipeline propagates the values from previous execution rather than recomputing the step. When multiple successful executions exist within the timeout period, it uses the result for the most recent successful execution.
CacheConfig$new(enable_caching = FALSE, expire_after = NULL)
enable_caching
(bool): To enable step caching. Defaults to 'FALSE'.
expire_after
(str): If step caching is enabled, a timeout also needs to defined. It defines how old a previous execution can be to be considered for reuse. Value should be an ISO 8601 duration string. Defaults to 'NULL'.
format()
format class
CacheConfig$format()
clone()
The objects of this class are cloneable with this method.
CacheConfig$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.