Skip to content

Releases: awolverp/cachebox

Release v4.5.1

01 Feb 09:46
Compare
Choose a tag to compare

A small fix for version v4.5.0.

Changes

In previous version, the cached and cachedmethod functions caught a KeyError from the callback function, which led to the cached function being called again.

Thanks to

Release v4.5.0

31 Jan 11:44
Compare
Choose a tag to compare

cached and cachedmethod improved

Now cachebox uses threading.Lock for sync functions, and asyncio.Lock for async functions to avoid cache stampede. These changes fix #15 and #20 issues.

Thanks to

Release v4.4.2

18 Jan 15:24
Compare
Choose a tag to compare

No important changes were made to the library.

Updated

Pyo3 dependency updated and Box layout removed from Rust code.

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