Skip to content

Cache Set

Stores a value in a cache entry for later retrieval.

Use the Cache Get block to fetch values from the cache.

Type identifier

Use the following identifier in step "type" field: roboflow_core/cache_set@v1to add the block as as step in your workflow.

Properties

Name Type Description Refs
name str Enter a unique identifier for this step..
key str The key of the cache entry to set..

The Refs column marks possibility to parametrise the property with dynamic values available in workflow runtime. See Bindings for more info.

Available Connections

Check what blocks you can connect to Cache Set in version v1.

Input and Output Bindings

The available connections depend on its binding kinds. Check what binding kinds Cache Set in version v1 has.

Bindings
  • input

    • image (image): The image data to use as a reference for the cache namespace..
    • key (string): The key of the cache entry to set..
    • value (Union[list_of_values, *]): The value to store in the cache..
  • output

    • output (*): Equivalent of any element.
Example JSON definition of step Cache Set in version v1
{
    "name": "<your_step_name_here>",
    "type": "roboflow_core/cache_set@v1",
    "image": "$inputs.image",
    "key": "my_cache_key",
    "value": "any_value"
}