Skip to content

Bump cachebox from 5.2.3 to 6.0.0 - #8191

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pip/cachebox-6.0.0
Closed

Bump cachebox from 5.2.3 to 6.0.0#8191
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pip/cachebox-6.0.0

Conversation

@dependabot

@dependabotdependabotBot commented on behalf of githubJun 3, 2026

Copy link
Copy Markdown
Contributor

Bumps cachebox from 5.2.3 to 6.0.0.

Release notes

Sourced from cachebox's releases.

Release v6.0.0

The library has been completely optimized and rewritten for maximum performance and stability. All core algorithms have been reviewed and improved, multiple long-standing bugs have been fixed, and several requested features have been added.

New Features

  • Added postprocess parameter to the @cached decorator, providing much more flexible control over cached results (replaces the deprecated copy_level).
  • Added getsizeof parameter to cache classes. This callable allows implementing weighted caching based on memory footprint, object size, or any custom logic.
  • Background sweeping support for TTLCache and VTTLCache via the new sweep_interval parameter. When set, a background thread automatically cleans up expired items (#46).
  • New methods added to all cache classes:
    • current_size()
    • remaining_size()
    • contains()
  • Added helper functions for better type hinting:
    • get_cached_cache()
    • get_cached_cache_info()
    • get_cached_callback()
    • clear_cached_cache()

Changes

  • The entire library is now implemented in Rust using PyO3. Python wrapper classes have been removed.
  • Significant performance improvements (very large speed gains).
  • Major algorithmic improvements to FIFOCache and TTLCache.
  • Tests has been expanded and improved for better coverage and reliability.
  • All docstrings have been expanded with explanations of algorithms.
  • Mimalloc allocator has been removed.
  • All dependencies has been updated.
  • @cached decorator now uses LRUCache by default, instead of FIFOCache.

Breaking Changes

  • copy_level parameter in @cached has been deprecated and no longer has any effect.
  • TTLCache.ttl has been renamed to TTLCache.global_ttl to avoid confusion with per-item TTL.
  • cachedmethod decorator has been completely removed (deprecated since v5.1.0).
  • maxmemory parameter has been removed due to severe performance regression. Use getsizeof for weighted caching instead.
  • Pickle states structure changed (__getstate__ / __setstate__). Pickled caches from v5 may not be compatible with v6.

Bug Fixes

ReadMigration Guide

Commits

@dependabotdependabotBot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Jun 3, 2026
@dependabot
dependabotBot requested a review from a team as a code ownerJune 3, 2026 22:14
@dependabotdependabotBot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Jun 3, 2026
@codecov

codecovBot commented Jun 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 70.03%. Comparing base (61d333e) to head (f965ff7).

Additional details and impacted files
@@ Coverage Diff @@## main #8191 +/- ##
==========================================
- Coverage 71.02% 70.03% -0.99% 
==========================================
Files 301 301 Lines 31891 31891 ==========================================
- Hits 22650 22335 -315 - Misses 9241 9556 +315 

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Bumps [cachebox](https://github.com/awolverp/cachebox) from 5.2.3 to 6.0.0.
- [Release notes](https://github.com/awolverp/cachebox/releases)
- [Commits](awolverp/cachebox@v5.2.3...v6.0.0)
---
updated-dependencies:
- dependency-name: cachebox
dependency-version: 6.0.0
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabotBotforce-pushed the dependabot/pip/cachebox-6.0.0 branch from 4fac7af to f965ff7CompareJune 5, 2026 04:44
@dependabot@github

dependabotBot commented on behalf of githubJun 8, 2026

Copy link
Copy Markdown
ContributorAuthor

Superseded by #8200.

@dependabotdependabotBot closed this Jun 8, 2026
auto-merge was automatically disabled June 8, 2026 04:43

Pull request was closed

@dependabot
dependabotBot deleted the dependabot/pip/cachebox-6.0.0 branch June 8, 2026 04:43
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

blocked on third party dependencydependenciesPull requests that update a dependency filepythonPull requests that update Python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@jenshnielsen