NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
PyPI · #1336 most downloaded on PyPI
A collection of cache libraries in the same API interface.
Last release 1 months ago
24 Aug 2026
Ships unpredictably
gaps range from 8 days to 2.1 years
Nearly every release is documented
notes for 25 of 26 stable releases
Nothing withdrawn
no release was ever pulled
8 years old
26 releases · first in 2018
…add new deprecations, or introduce potentially breaking changes. We encourage everyone to upgrade, and to use a tool such as pip-tools to pin all depe…
This is CacheLib's 0.17.0 feature release. A feature release may include new features, remove previously deprecated code, add new deprecations, or introduce potentially breaking changes. We encourage everyone to upgrade, and to use a tool such as pip-tools to pin all dependencies and control upgrades. Test with warnings treated as errors to be able to adapt to deprecation warnings early.
PyPI: https://pypi.org/project/CacheLib/0.17.0/
Changes: https://cachelib.readthedocs.io/en/stable/changes/#version-0.17.0
Milestone: https://github.com/pallets-eco/cachelib/milestone/4?closed=1
datetime.timedelta in addition to int. #510TypeError. Passing a float will raise a TypeErrorTypeError immediately. #510memcache_client_lib parameter to MemcachedCache to select whichpylibmc, google, memcache, orlibmc). When not set, the library is auto-detected as before. #511Full Changelog: 0.16.1...0.17.0
One column per quarter.
This is CacheLib's 0.16.1 fix release, which fixes bugs but does not otherwise change behavior and should not result in breaking changes compared to t…
This is CacheLib's 0.16.1 fix release, which fixes bugs but does not otherwise change behavior and should not result in breaking changes compared to the latest feature release.
PyPI: https://pypi.org/project/CacheLib/0.16.1/
Changes: https://cachelib.readthedocs.io/en/stable/changes/#version-0.16.1
check_connection parameter to allow users to control whetherFull Changelog: 0.16.0...0.16.1
Released 2026-08-21
Add check_connection parameter to allow users to control whether the constructor will attempt to ping the client on init. 508
…add new deprecations, or introduce potentially breaking changes. We encourage everyone to upgrade, and to use a tool such as pip-tools to pin all depe…
This is CacheLib's 0.16.0 feature release. A feature release may include new features, remove previously deprecated code, add new deprecations, or introduce potentially breaking changes. We encourage everyone to upgrade, and to use a tool such as pip-tools to pin all dependencies and control upgrades. Test with warnings treated as errors to be able to adapt to deprecation warnings early.
PyPI: https://pypi.org/project/CacheLib/0.16.0/
Changes: https://cachelib.readthedocs.io/en/stable/changes/#version-0.16.0
Milestone: https://github.com/pallets-eco/cachelib/milestone/3?closed=1
FileSystemCache default hash method to hashlib.sha256hashlib.md5 is not available in FIPs builds. #500Memcached with python-memcached client returned Noneflush_all was successful. #504ignore_delete_many_errors parameter to all cache backends to allowdelete_many() raises a RuntimeError if any key fails to delete. #505Full Changelog: 0.15.4...0.16.0
This is CacheLib's 0.15.4 fix release, which fixes bugs but does not otherwise change behavior and should not result in breaking changes compared to t…
This is CacheLib's 0.15.4 fix release, which fixes bugs but does not otherwise change behavior and should not result in breaking changes compared to the latest feature release.
PyPI: https://pypi.org/project/CacheLib/0.15.4/
Changes: https://cachelib.readthedocs.io/en/stable/changes/#version-0.15.4
RedisCache to not use pickle for integers, so they remain compatible with the native INCRBY/ DECRBY operations used by inc / dec. #497Full Changelog: 0.15.3...0.15.4
Released 2026-08-08
Fix dumps in RedisCache to not use pickle for integers, so they remain compatible with the native INCRBY/ DECRBY operations used by inc/dec. 497
This is CacheLib's 0.15.3 fix release, which fixes bugs but does not otherwise change behavior and should not result in breaking changes compared to t…
This is CacheLib's 0.15.3 fix release, which fixes bugs but does not otherwise change behavior and should not result in breaking changes compared to the latest feature release.
PyPI: https://pypi.org/project/CacheLib/0.15.3/
Changes: https://cachelib.readthedocs.io/en/stable/changes/#version-0.15.3
MemcachedCache inc and dec methods double normalizing keys. #495Full Changelog: 0.15.2...0.15.3
Released 2026-08-08
Fix MemcachedCache inc and dec methods double normalizing keys. 495
This is CacheLib's 0.15.2 fix release, which fixes bugs but does not otherwise change behavior and should not result in breaking changes compared to t…
This is CacheLib's 0.15.2 fix release, which fixes bugs but does not otherwise change behavior and should not result in breaking changes compared to the latest feature release.
PyPI: https://pypi.org/project/CacheLib/0.15.2/
Changes: https://cachelib.readthedocs.io/en/stable/changes/#version-0.15.2
libmc in MemcachedCache no reserve nor blocking. #493Full Changelog: 0.15.1...0.15.2
Released 2026-08-07
Fix libmc in MemcachedCache no reserve nor blocking. 493
This is CacheLib's 0.15.1 fix release, which fixes bugs but does not otherwise change behavior and should not result in breaking changes compared to t…
This is CacheLib's 0.15.1 fix release, which fixes bugs but does not otherwise change behavior and should not result in breaking changes compared to the latest feature release.
PyPI: https://pypi.org/project/CacheLib/0.15.1/
Changes: https://cachelib.readthedocs.io/en/stable/changes/#version-0.15.1
JSONSerializer serializer and use the same base class for DynamoDB serialization. #490MemcachedCache libmc client not being created correctly #491Full Changelog: 0.15.0...0.15.1
Released 2026-08-07
Add JSONSerializer serializer and use the same base class for DynamoDB serialization. 490
Fix MemcachedCache libmc client not being created correctly 491
…add new deprecations, or introduce potentially breaking changes. We encourage everyone to upgrade, and to use a tool such as pip-tools to pin all depe…
This is CacheLib's 0.15.0 feature release. A feature release may include new features, remove previously deprecated code, add new deprecations, or introduce potentially breaking changes. We encourage everyone to upgrade, and to use a tool such as pip-tools to pin all dependencies and control upgrades. Test with warnings treated as errors to be able to adapt to deprecation warnings early.
PyPI: https://pypi.org/project/CacheLib/0.15.0/
Changes: https://cachelib.readthedocs.io/en/stable/changes/#version-0.15.0
Milestone: https://github.com/pallets-eco/cachelib/milestone/2?closed=1
SimpleCache thread-safe using a threading.RLock. #446pylibmc and libmc clients thread-safe by using ClientPool. #287Full Changelog: 0.14.0...0.15.0
…add new deprecations, or introduce potentially breaking changes. We encourage everyone to upgrade, and to use a tool such as pip-tools to pin all depe…
This is the CacheLib 0.14.0 feature and fix release. A feature release may include new features, remove previously deprecated code, add new deprecations, or introduce potentially breaking changes. We encourage everyone to upgrade, and to use a tool such as pip-tools to pin all dependencies and control upgrades. Test with warnings treated as errors to be able to adapt to deprecation warnings early.
PyPI: https://pypi.org/project/CacheLib/0.14.0/
Changes: https://cachelib.readthedocs.io/en/stable/changes/#version-0.14.0
Milestone: https://github.com/pallets-eco/cachelib/milestone/1?closed=1
datetime.utcnow() with datetime.now(). #421FileSystemCache permission errors on Network Attached Storage (NAS) when trying to perform operations on files that are open in other processes. #424None when a pickle error is raised during serialization. #448add() in SimpleCache treating expired keys as still valid, preventing them from being overwritten until explicitly deleted. #449delete_many() in RedisCache and MemcachedCache incorrectly reporting failed deletions due to comparing normalized keys against non-normalized keys. #443Full Changelog: 0.13.0...0.14.0
Released 2026-05-09
Improve typing and refresh project to use pyproject and pallets workflows 420
Replace deprecated datetime.utcnow() with datetime.now() 421
Fix FileSystemCache permission errors on Network Attached Storage (NAS) when trying to perform operations on files that are open in other processes 424
Fix delete_many() in RedisCache and MemcachedCache incorrectly reporting failed deletions due to comparing normalized keys against non-normalized keys 443
Fix serializer returning an unbound variable error instead of None when a pickle error is raised during serialization 448
Fix add() in SimpleCache treating expired keys as still valid, preventing them from being overwritten until explicitly deleted 449
Add valkey backend 441
https://cachelib.readthedocs.io/en/stable/changes/
Released 2024-04-13
default ~hashlib.md5 may not be available in FIPS builds. We now do not access it at import time on FileSystemCache so developers have time to change the default. ~hashlib.md5 will be lazy loaded when a new default is not provided
https://cachelib.readthedocs.io/en/stable/changes/
Released 2024-02-11
RedisCache now supports callables as keys
Added MongoDB as a cache backend
https://cachelib.readthedocs.io/en/stable/changes/
https://cachelib.readthedocs.io/en/stable/changes/
Released 2024-02-10
Drop python 3.7 support
Add python 3.11 support
https://cachelib.readthedocs.io/en/stable/changes/
https://cachelib.readthedocs.io/en/stable/changes/
https://cachelib.readthedocs.io/en/stable/changes/
https://cachelib.readthedocs.io/en/stable/changes/
Released 2023-01-22
Fix logging pollution due to DynamoDB logging handler
https://cachelib.readthedocs.io/en/stable/changes/
https://cachelib.readthedocs.io/en/stable/changes/
Released 2023-01-22
Improve error message when FileSystemCache methods are called with non-string keys. 170
Added DynamoDb as a cache backend 209
https://cachelib.readthedocs.io/en/stable/changes/
https://cachelib.readthedocs.io/en/stable/changes/
Released 2022-06-26
Add separate internal read/write clients to RedisCache to improve compatibility with flask-caching. 159
Fix bug where cache entries would expire immediately when RedisCache.add was called without timeout. 157
Improve FileSystemCache.set compatibility with Windows systems. 158
https://cachelib.readthedocs.io/en/stable/changes/
https://cachelib.readthedocs.io/en/stable/changes/
Released 2022-06-13
Remove deprecated RedisCache.load_object and RedisCache.dump_object. 147
https://cachelib.readthedocs.io/en/stable/changes/
https://cachelib.readthedocs.io/en/stable/changes/
Released 2022-05-14
FileSystemCache now stores universal expiration timestamps using python's struct module. 126
Drop support for Python 3.6. 134
https://cachelib.readthedocs.io/en/stable/changes/
https://cachelib.readthedocs.io/en/stable/changes/
Released 2022-01-18
A custom hash_method may now be provided to FileSystemCache for hashing keys. 107
Fix PermissionError issue with FileSystemCache on Windows. 111
https://cachelib.readthedocs.io/en/stable/changes/
https://cachelib.readthedocs.io/en/stable/changes/
Released 2021-12-31
Cache types now have configurable serializers. 63
https://cachelib.readthedocs.io/en/stable/changes/
https://cachelib.readthedocs.io/en/stable/changes/
Released 2021-10-04
Fix break in RedisCache when a host object was passed in RedisCache.host instead of a string. 82
https://cachelib.readthedocs.io/en/stable/changes/
https://cachelib.readthedocs.io/en/stable/changes/
Released 2021-10-03
All cache types now implement BaseCache interface both in behavior and method return types. Thus, code written for one cache type should work with any other cache type. 71
Add type information for static typing tools. 48
FileNotFound exceptions will not be logged anymore in FileSystemCache methods in order to avoid polluting application log files. 69
https://cachelib.readthedocs.io/en/stable/changes/
https://cachelib.readthedocs.io/en/stable/changes/
Released 2021-08-12
Optimize FileSystemCache pruning. 52
Fix a bug in FileSystemCache where entries would not be removed when the total was over the threshold, and the entry count would be lost. 52
FileSystemCache logs system-related exceptions. 51
Removal of expired entries in FileSystemCache is only triggered if the number of entries is over the threshold when calling set. get has still return None and False respectively for expired entries, but will not remove the files. All removals happen at pruning time or explicitly with clear and delete. 53
https://cachelib.readthedocs.io/en/stable/changes/
https://cachelib.readthedocs.io/en/stable/changes/
Released 2021-06-25
Support for Python 2 has been dropped. Only Python 3.6 and above are supported.
Fix FileSystemCache.set incorrectly considering value overrides on existing keys as new cache entries. 18
SimpleCache and FileSystemCache first remove expired entries, followed by older entries, when cleaning up. 26
Fix problem where file count was not being updated in FileSystemCache.get and FileSystemCache.has after removals. 20
When attempting to access non-existent entries with Memcached, these will now be initialized with a given value delta. 31
Fix FileSystemCache on Windows #12
Released 2020-06-20
Fix FileSystemCache on Windows.
Changes
Version 0.17.0
Version 0.16.1
Version 0.16.0
Version 0.15.4
Version 0.15.3
Version 0.15.2
Version 0.15.1
Version 0.15.0
Version 0.14.0
Version 0.13.0
Version 0.12.0
Version 0.11.0
Version 0.10.2
Version 0.10.1
Version 0.10.0
Version 0.9.0
Version 0.8.0
Version 0.7.0
Version 0.6.0
Version 0.5.0
Version 0.4.1
Version 0.4.0
Version 0.3.0
Version 0.2.0
Version 0.1.1
© Copyright 2018 Pallets. Created using Sphinx 9.1.0.
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →