Skip to content

Big Update v4.0.0 馃敟

Choose a tag to compare

@awolverp awolverp released this 17 Aug 13:33
· 382 commits to main since this release
b2aac66

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
  • 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.