Skip to content

Releases: awolverp/cachebox

Big Update v2.0.0

09 Mar 12:28
Compare
Choose a tag to compare

In this release, I rewritten all implemetations, documentation, and stub-file.

Added

  • New .drain(n) method: According to cache algorithm, deletes and returns n items from cache.
  • New .shrink_to_fit() method: Shrinks the capacity of the cache as much as possible.

Removed

  • The MRUCache removed.

Changed

  • __new__ methods changed; Now you can insert items to caches when creating those.
  • TTLCacheNoDefault name changed to VTTLCache.
  • __iter__, keys, values and items methods now are iterable.
  • LFUCache sorting algorithm changed to improve speed.
  • __eq__ and __ne__ methods changed.
  • cached decorator parameter clear_reuse default value from True changed to False.

Deprecated

  • .delete() methods are deprecated; use del cache[key] instead.
  • .getmaxsize() methods are deprecated; use .maxsize property instead.
  • TTLCache.getttl() method is deprecated; use .ttl property instead.

Fixed

  • make_typed_key function bug fixed.

Internal

  • Link-time optimization value changed.
  • codegen-units value changed.
  • strip value changed to reduce binary file size.
  • New dependency: typing_extensions

Release v1.0.19

29 Feb 08:25
78d6618
Compare
Choose a tag to compare

Added

  • CHANGELOG file added to show you changes

Fixed

  • Improve code stability
  • README.md file examples fixed
  • Add versions information to BENCHMARK.md file
  • __version__ and __author__ variables fixed

Changed

  • Makefile test commands changed

First Release v1.0.0

28 Feb 09:12
cd69d10
Compare
Choose a tag to compare

The fastest memoizing and caching Python library is here ...