Cachebox

Latest version: v4.4.1

Safety actively analyzes 693883 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 6

4.1.0

Improved
- `cached` type-hint is better now.

Added
- there's a new feature, see that in [`cached` documentation](README.mdfunction-cached).

4.0.1

Fixed
- Fix `unexpected_cfg` warnings on compile time

4.0.0

The Big Update ...

Added
- There's a new class: `Frozen`

Fixed
- using `BaseCacheImpl` as subclass was cause NotImplementedError, but now fixed.
- `make_*_key` functions error fixed

Improved
All of caches improved and their perfomance improved a lot.

Changed
- All of caches' algorthims changed:
- `Cache` performance improved about 5%.
- `FIFOCache` performance improved about 20%.
- `LFUCache` performance improved about 46%.
- `TTLCache` performance improved about 30%.
- `VTTLCache` performance improved about 20%.
- `LRUCache` performance improved about 40%.
- See [benchmarks](https://github.com/awolverp/cachebox-benchmark)

- All of `.items()` and `.keys()` and `.values()` methods are now ordered.
- `.insert()` method changed: If the cache did have this key present, the value is updated, and the old value is returned.

Deprecated
- `utils.items_in_order` function is deprecated and no longer available.

3.4.0

Added
- `items_in_order` function added - helps you to iterate caches items in order

Changed
- `LRUCache` alghoritm changed and optimized (4x faster)
- The `ttl` parameter of `VTTLCache.insert` now has a default value (`None`).
- Testing improved

Updated
- Dependecies updated

3.3.1

Fixed
- Change comparing alghoritm
- Fix [5](https://github.com/awolverp/cachebox/issues/5)

3.3.0

Added
- `FIFOCache`:
- Added new parameter `n` to `.first()` method.

- `LFUCache`:
- New `.peek()` method is added.
- New parameter `n` to `.least_frequently_used()` method is added.

- `LRUCache`:
- New `.peek()` method is added.
- New parameter `n` to `.least_recently_used()` method is added.

- `TTLCache`:
- New `.first()` and `.last()` methods are added.

Updated
- dependecies updated

Page 3 of 6

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.