Skip to content

feat/persistent-cache #14

Merged
donfear merged 1 commit intomainfrom
feat/persistent-cache
Feb 3, 2026
Merged

feat/persistent-cache #14
donfear merged 1 commit intomainfrom
feat/persistent-cache

Conversation

@donfear
Copy link
Owner

@donfear donfear commented Feb 3, 2026

Implement a two-tier caching strategy with in-memory and persistent disk storage to improve performance across CLI invocations. The disk cache survives process restarts and reduces network requests for frequently accessed packages.

Key features:

  • 24-hour TTL for disk cache entries
  • Automatic eviction of oldest entries when cache exceeds 5000 packages
  • Support for scoped packages with safe filename generation
  • Seamless integration with npm and jsDelivr registry services
  • Cache versioning to handle future structure changes

Implement a two-tier caching strategy with in-memory and persistent disk
storage to improve performance across CLI invocations. The disk cache
survives process restarts and reduces network requests for frequently
accessed packages.

Key features:
- 24-hour TTL for disk cache entries
- Automatic eviction of oldest entries when cache exceeds 5000 packages
- Support for scoped packages with safe filename generation
- Seamless integration with npm and jsDelivr registry services
- Cache versioning to handle future structure changes
@donfear donfear merged commit abb0daa into main Feb 3, 2026
19 checks passed
@donfear donfear deleted the feat/persistent-cache branch February 3, 2026 16:56
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.

1 participant