Releases: umarbutler/persist-cache
Releases · umarbutler/persist-cache
v0.4.3
v0.4.2
v0.4.1
Fixed
- Fixed the formatting of the docstring of
cache()
because a portion of it was being rendered by Vscode as a single line instead of a bullet point list.
v0.4.0
Added
- Added support for the caching of both synchronous and asynchronous generator functions.
- Added
delete()
,clear()
andflush()
helper functions for deleting, clearing and flushing caches.
v0.3.2
Changed
- Began hashing the names of caches with
XXH3
to ensure caches may be assigned any arbitrary name, regardless of whether it is compatible with the local file system.
v0.3.1
v0.3.0
Changed
- Ceased delimiting hashes and the length of the input with hyphens as the hashes already have a fixed size so there is no possibility of collision.
v0.2.0
Added
- Stale calls are now flushed when initialising a cache.
Changed
- Switched hashing algorithm from
XXH3
toXXH128
and began suffixing hashes with the length of their input to significantly reduce the already very low likelihood of hash collisions. - Pickle data is now compressed with LZ4 to speed up IO and reduce disk usage.
Removed
- Removed unused import of
asyncio
inpersist_cache.py
.
v0.1.1
Added
- Added a unit test for passing a custom name to
cache()
. - Added unit tests for the caching of asynchronous functions and methods.
- Added unit tests for the caching of synchronous methods.
Fixed
v0.1.0
Added
- Added the
cache()
decorator, which locally and persistently caches functions.