options.cache_key is present and options.use_cache is not false.
Cache drivers
The executor supports two cache drivers:| Driver | Use case |
|---|---|
in-memory | Local development or a single executor process. Entries are lost when the process exits and are not shared across replicas. |
redis | Shared cache storage for multiple executor processes or deployments that need cache persistence outside the executor process. |
in-memory.
Run with in-memory cache
Run with Redis cache
Use--cache-driver redis and provide the Redis host. Add --redis-password when your Redis instance requires authentication.
--redis-password.
Request cache keys
Cache entries are separated byoptions.cache_key in the /execute request body. Requests with the same cache key can reuse matching agent outputs. Requests with different cache keys do not share entries.
options.cache_key is omitted or empty, the executor bypasses cache reads and writes for that request.
Rotate or invalidate a cache key
The simplest way to invalidate cached results is to send a new cache key. The playground does this automatically when the page loads, and its purge cache action regenerates the current workflow tab’s cache key. If you need to delete stored entries for a cache key, callPOST /cache/invalidate.
Disable caching per request
Setoptions.use_cache to false to bypass reads and writes for a request.