S3 Cache icon

S3 Cache

Read and write cached objects backed by Amazon S3

Cache Check

AI-generated

Summary

Verify whether a cache entry identified by a unique Cache ID exists and is fresh in an Amazon S3 bucket.

Inputs

  • Cache ID (required) — Unique identifier used as the cache key to look up the cached entry.

Output shape

Two output paths: 'Hit' outputs the cached data as JSON or binary, 'Miss' outputs if the cache entry is missing or expired.

Caching freshness is based on the TTL (time-to-live) metadata stored with the object and its last modification date. If the cache entry exists and is fresh, its content is returned on the 'Hit' output; otherwise, the 'Miss' output is triggered. The operation relies on configured S3 credentials and bucket settings. Binary data is returned in base64 encoding with mime type metadata.

Examples

Example 1: Check if a JSON cache entry exists and retrieve it if fresh.

Input a Cache ID string; connect 'Hit' output to further JSON processing nodes; 'Miss' output processes cache misses or triggers cache refresh logic.

Discussion