Skip to content

Write Cache Node

Data/Cache

Stores a value in the app's cache, optionally with a lifetime after which it disappears on its own. The cache is for small, hot values (about 1 MB max) — persist large data to the app's storage instead.

cache_writedata
Inputs5
Outputs2
Security exposure8/10
Packagedata

Ratings

Scores range from 0 to 10. Higher values mean more impact, exposure, or operational weight.

SecurityAttack surface and exposure impact.
8/10High
PrivacyPotential sensitivity of processed data.
7/10High
PerformanceRuntime or resource pressure.
9/10High
GovernancePolicy, audit, or compliance impact.
7/10High
ReliabilityOperational stability considerations.
8/10High
CostExternal or compute cost impact.
9/10High

Input Pins

5

Input

Execution
exec_in

Initiate Execution

Cache

Struct
cache

Cache handle from the Open Cache node

FlowCacheFlowCache2 fields
scopeCacheScoperequired

Who a cache entry belongs to. Mirrors `flow_like_types::cache::CacheScope` on the wire; kept as its own type so the pin dropdown can carry friendly labels.

variant 1constvariant

Shared by everyone who can execute in the app.

const "app"
variant 2constvariant

Private to the user who triggered the run.

const "user"
namespacestring

Optional grouping travelling alongside every key. Entries sharing a namespace can be invalidated together; unrelated flows also use it to keep short keys from colliding.

default ""
Schema enforced

Key

String
key

The key to write

Value

Generic
value

The value to store — a struct, array, string, number or boolean

Lifetime (s)

Integer
ttl_seconds

Seconds until the entry expires. 0 keeps it until it is deleted.

Default 0

Output Pins

2

Output

Execution
exec_out

Done with the Execution

Expires At

Integer
expires_at

Unix timestamp in milliseconds when the entry expires, or 0 when it never does

Node Info

Internal name
cache_write
Category
Data/Cache
Version
2