Skip to content

Releases: awolverp/cachebox

Release v4.4.1

19 Dec 08:00
Compare
Choose a tag to compare

No changes were made to the library. Only dependencies updated, such as PyO3 that has a soundness fix.

Release v4.4.0

28 Nov 10:59
Compare
Choose a tag to compare

Added

  • New copy_level parameter added to cachedmethod and cached.

Deprecated

  • The always_copy parameter marked as deprecated.

Changed

  • The cached and cachedmethod structures changed due to some issues.

Removed

  • typing_extensions dependency removed.
  • info parameter removed from cachedmethod and cached.

Release v4.3.2

25 Nov 09:37
Compare
Choose a tag to compare

Added

New dependency is added: typing_extensions.
We used this library to use ParamSpec that makes cachebox type-hint better, and easier than ever for you.

Changed

the behaviour of the iteratores changed. Previously, iterators used capacity and length of the cache to know "is cache have changes?". But now, each cache has a number called "state" that increments with each change; iterators now uses this "state" number.

Release v4.3.1

18 Nov 10:43
Compare
Choose a tag to compare

Changed

  • __str__ changed to __repr__
  • Free-threading is supported now
  • Dependencies updated

Release v4.3.0

09 Nov 10:19
Compare
Choose a tag to compare

Added

  • Add always_copy parameter to cached and cachedmethod decorators; This is useful when function returns mutable results, such as dict, list, or set, ....

Release v4.2.3

18 Oct 07:16
Compare
Choose a tag to compare

Release v4.2.2 was missing some .whl files for linux. Thanks @ecarrara for the fix, Thanks @ksquarekumar for the report.

Fixed

  • Fix issue #13

Release v4.2.2

16 Oct 10:50
Compare
Choose a tag to compare

In this release we support Python 3.13

Fixed

  • TTLCache.__str__ fixed

Release v4.2.1

10 Oct 19:55
Compare
Choose a tag to compare

Fixed

  • Fix BaseCacheImpl.__class_getitem__
cache = cachebox.Cache[int, int](0) # Before this release, you will get error but now is OK
  • Fix cached and cachedmethod type-hint

Release v4.2.0

04 Oct 15:48
Compare
Choose a tag to compare

Added

  • New function is_cached is added.
  • New parameter callback is added to cached and cachedmethod: now you can set a callback for cached functions.

Changed

  • Some docstrings are changed.

Fixed

Release v4.1.2

07 Sep 06:40
Compare
Choose a tag to compare

Fixed

  • #11 bug fixed