mode | enum | semantic | exact, semantic, or both. |
scope | enum | consumer | consumer isolates entries per consumer; global shares them gateway-wide. |
vector_store | enum | redis | redis, pgvector, or in_memory. |
similarity_threshold | number | 0.85 | Cosine similarity in (0, 1] required for a hit. |
ttl_seconds | int | — | Entry lifetime in seconds (takes precedence over ttl). |
ttl | duration | 24h | Legacy duration form, superseded by ttl_seconds. |
embedding.provider | string | openai | Embedding provider used to vectorize requests. |
embedding.model | string | text-embedding-ada-002 | Embedding model. |
embedding.api_key | string | — | Credential for the embedding provider. |
cache_only_on_status | int[] | [200] | Status codes whose responses may be cached. |
bypass_header | string | X-Cache-Bypass | Request header whose presence bypasses lookup + store. |
skip_if_tools_present | bool | true | Skip caching when the request/response involves tool calls. |
skip_if_streaming | bool | false | Skip caching for streaming requests/responses. |