Merged
Conversation
- Implement sharded persistent DiskCache and two-tier TieredCache (memory + disk) - Enable caching by default with project-scoped cache dirs and env/config options - Ignore sensitive provider params in cache key generation and mark cached results (CacheHit, cleared usage) - Update providers/tests and add caching example + docs Signed-off-by: assagman <ahmetsercansagman@gmail.com>
- add LazyCache to defer disk cache setup until first LM call (fallback to memory on init failure) - introduce new cache env vars (DSGO_CACHE, DSGO_CACHE_MEMORY, DSGO_CACHE_DISK, DSGO_CACHEDIR, DSGO_CACHE_LIMIT) and update docs/examples - harden cache key generation for nil options and include provider-prefixed model names to avoid collisions - remove deprecated public cache options in favor of WithTieredCache/env-driven config Signed-off-by: assagman <ahmetsercansagman@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
(fallback to memory on init failure)
DSGO_CACHE_DISK, DSGO_CACHEDIR, DSGO_CACHE_LIMIT) and update
docs/examples
provider-prefixed model names to avoid collisions
WithTieredCache/env-driven config