Big Update v4.0.0 馃敟
The Big Update ...
Added
- There's a new class:
Frozen
Fixed
- using
BaseCacheImplas subclass was cause NotImplementedError, but now fixed. make_*_keyfunctions error fixed
Improved
All of caches improved and their perfomance improved a lot.
Changed
-
All of caches' algorthims changed:
Cacheperformance improved about 5%.FIFOCacheperformance improved about 20%.LFUCacheperformance improved about 46%.TTLCacheperformance improved about 30%.VTTLCacheperformance improved about 20%.LRUCacheperformance improved about 40%.- See benchmarks
-
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_orderfunction is deprecated and no longer available.