Skip to content

feat: Add BRAINTRUST_CACHE_LOCATION env var to control caching location#2061

Merged
Luca Forstner (lforst) merged 2 commits into
mainfrom
lforst/prompt-cache-options
May 29, 2026
Merged

feat: Add BRAINTRUST_CACHE_LOCATION env var to control caching location#2061
Luca Forstner (lforst) merged 2 commits into
mainfrom
lforst/prompt-cache-options

Conversation

@lforst
Copy link
Copy Markdown
Member

Adds support for a BRAINTRUST_CACHE_MODE env var to control where the SDK caches prompts and parameters.

Supported values are mixed, memory, disk, and none, with mixed as the default.

Fixes #2054

@lforst Luca Forstner (lforst) merged commit f21f090 into main May 29, 2026
42 checks passed
@lforst Luca Forstner (lforst) deleted the lforst/prompt-cache-options branch May 29, 2026 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

JS SDK: provide a way to disable the prompt/parameters disk cache

2 participants