Cachebox

Latest version: v4.4.1

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

Scan your dependencies

Page 4 of 6

3.2.1

Changed
- `VTTLCache` sorting alghrotim changed; its speed improved.
- Compile-time flags changed and optimized

3.2.0

Added
- Add `version_info` variable

Fixed
- pyproject.toml classifiers changed and fixed
- Documentation markdown fixed

3.1.1

Changed
- `cached` and `cachedmethod` will use `FIFOCache` on default (previously it used `Cache`).

Fixed
- Fix undefined behavior on iterators when cache's capacity changed

3.1.0

Added
- Now supports `pickle`
- a little document added to Rust code

Changed
- `VTTLCache`: uses `time::SystemTime` instead of `time::Instant` ( doesn't effect python codes, don't care )
- `TTLCache`: uses `time::SystemTime` instead of `time::Instant` ( doesn't effect python codes, don't care )

3.0.0

Changed
- `__repr__` changed to `__str__`
- Maxsize system changed; when you pass `0` as maxsize, the value of `sys.maxsize` is automatically used.
- `__eq__` and `__ne__` behaviors changed
- Iterators mechanisms changed:
- Now uses pointer to hashmap and iterate it
- Additional spaces are removed
- Caches cannot change while using iterators
- hashing machanism changed; now we cache hashes for elements to improve speed
- `Cache` was rewritten:
- Now we use low-level API of hashbrown hashmap.
- We removed additional layers to improve speed and performance.
- `FIFOCache` was rewritten:
- The additional memory space removed
- Keeping items order system changed
- popitem, last, and first methods optimized
- `LFUCache` was rewritten:
- optimized and additional spaces removed
- now just uses one hashmap instead of two
- algorithm optimized
- `RRCache` was rewritten:
- Uses low-level API of hashbrown hashmap
- `LRUCache` was rewritten; Doesn't have any special changes.
- `TTLCache` was rewritten:
- Time-To-Live checking system has a little changes
- iterators do not return expired items now
- `VTTLCache` was rewritten:
- Now keeps expire times of each element in vector; this may improves speed in some operations

Fixed
- Fix generic error: type ... is not subscriptable

Added
- Added new methods `is_empty` and `is_full`

2.2.4

Fixed
- Document fixed

Internal
- Dependecies updated

Page 4 of 6

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.