Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

cache_write

Writes a key to a cache connector, optionally with a TTL.

Synopsis

{
  "name": "cache_write",
  "input": {
    "connector": "redis",
    "key": "rate:42",
    "value": 1,
    "ttl_secs": 60
  }
}

Description

cache_write is a connector function. It names a connector for its credentials and endpoint. Orion validates its input when the workflow is saved, and the call runs through the connector’s circuit breaker.

Retry safety: idempotent_write. See Retry safety for what the answer costs.

Fields

FieldTypeRequiredDefaultDescription
connectorstringyesName of the cache connector
keystringyesCache key to set
valueanyyesValue to store (non-strings are JSON-serialized)
ttl_secsnumbernono expiryTime-to-live in seconds

Examples

{ "name": "cache_write", "input": { "connector": "redis", "key": "rate:42", "value": 1, "ttl_secs": 60 } }

Last verified 14 September 2026