Skip to content

improve cache#19

Merged
assagman merged 2 commits intomainfrom
improve/cache
Dec 16, 2025
Merged

improve cache#19
assagman merged 2 commits intomainfrom
improve/cache

Conversation

@assagman
Copy link
Owner

@assagman assagman commented Dec 16, 2025

  • 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
  • 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

- 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>
@assagman assagman self-assigned this Dec 16, 2025
@assagman assagman added the enhancement New feature or request label Dec 16, 2025
@assagman assagman merged commit 90a53c3 into main Dec 16, 2025
4 checks passed
@assagman assagman deleted the improve/cache branch December 16, 2025 01:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant