| 1 |
Version 0.17.0 |
| 2 |
-------------- |
| 3 |
|
| 4 |
Released 2026-08-24 |
| 5 |
|
| 6 |
- Timeout now also accepts a ``datetime.timedelta`` in addition to int. :pr:`510` |
| 7 |
- Float timeouts are deprecated and now rounded up to whole seconds, so |
| 8 |
backends with integer-second APIs (e.g. memcached) no longer fail with |
| 9 |
a confusing ``TypeError``. Passing a float will raise a ``TypeError`` |
| 10 |
in a future release; timeouts of any other unsupported type raise |
| 11 |
``TypeError`` immediately. :pr:`510` |
| 12 |
- Add ``memcache_client_lib`` parameter to ``MemcachedCache`` to select which |
| 13 |
memcache client library to use (``pylibmc``, ``google``, ``memcache``, or |
| 14 |
``libmc``). When not set, the library is auto-detected as before. :pr:`511` |
| 15 |
|
| 16 |
|
| 17 |
Version 0.16.1 |
| 18 |
--------------- |
| 19 |
|
| 20 |
Released 2026-08-21 |
| 21 |
|
| 22 |
- Add ``check_connection`` parameter to allow users to control whether |
| 23 |
the constructor will attempt to ping the client on init. :pr:`508` |
| 24 |
|
| 25 |
|
| 26 |
Version 0.16.0 |
| 27 |
--------------- |
| 28 |
|
| 29 |
Released 2026-08-20 |
| 30 |
|
| 31 |
- Change ``FileSystemCache`` default hash method to ``hashlib.sha256`` |
| 32 |
because ``hashlib.md5`` is not available in FIPs builds. :issue:`500` |
| 33 |
- Ping backends servers on init to ensure they are reachable. :pr:`503` |
| 34 |
- Fix ``Memcached`` with ``python-memcached`` client returned None |
| 35 |
instead of True when ``flush_all`` was successful. :pr:`504` |
| 36 |
- Add ``ignore_delete_many_errors`` parameter to all cache backends to allow |
| 37 |
users to control whether ``delete_many()`` raises a ``RuntimeError`` if any key fails to delete. :pr:`505` |
| 38 |
|
| 39 |
|
| 40 |
Version 0.15.4 |
| 41 |
--------------- |
| 42 |
|
| 43 |
Released 2026-08-08 |
| 44 |
|
| 45 |
- Fix dumps in ``RedisCache`` to not use pickle for integers, |
| 46 |
so they remain compatible with the native ``INCRBY``/ ``DECRBY`` |
| 47 |
operations used by :meth:`inc`/:meth:`dec`. :pr:`497` |
| 48 |
|
| 49 |
|
| 50 |
Version 0.15.3 |
| 51 |
--------------- |
| 52 |
|
| 53 |
Released 2026-08-08 |
| 54 |
|
| 55 |
- Fix ``MemcachedCache`` ``inc`` and ``dec`` methods double normalizing keys. :pr:`495` |
| 56 |
|
| 57 |
|
| 58 |
Version 0.15.2 |
| 59 |
--------------- |
| 60 |
|
| 61 |
Released 2026-08-07 |
| 62 |
|
| 63 |
- Fix ``libmc`` in ``MemcachedCache`` no reserve nor blocking. :pr:`493` |
| 64 |
|
| 65 |
|
| 66 |
Version 0.15.1 |
| 67 |
--------------- |
| 68 |
|
| 69 |
Released 2026-08-07 |
| 70 |
|
| 71 |
- Add ``JSONSerializer`` serializer and use the same base class for DynamoDB serialization. :pr:`490` |
| 72 |
- Fix ``MemcachedCache`` ``libmc`` client not being created correctly :pr:`491` |
| 73 |
|
| 74 |
|
| 75 |
Version 0.15.0 |
| 76 |
-------------- |
| 77 |
|
| 78 |
Released 2026-07-31 |
| 79 |
|
| 80 |
- Make ``SimpleCache`` thread-safe using a ``threading.RLock``. :issue:`446` |
| 81 |
- Make ``pylibmc`` and ``libmc`` clients thread-safe by using ``ClientPool``. :pr:`287` |
| 82 |
- Drop support for Python 3.8, 3.9 and 3.10. :issue:`477` |
| 83 |
- Add support for optional dependencies in ``pyproject.toml`` to allow users to |
| 84 |
install the dependencies for specific cache backends as needed. :pr:`459` |
| 85 |
|
| 86 |
|
| 87 |
Version 0.14.0 |
| 88 |
-------------- |
| 89 |
|
| 90 |
Released 2026-05-09 |
| 91 |
|
| 92 |
- Improve typing and refresh project to use ``pyproject`` and pallets workflows :pr:`420` |
| 93 |
- Replace deprecated ``datetime.utcnow()`` with ``datetime.now()`` :pr:`421` |
| 94 |
- Fix ``FileSystemCache`` permission errors on Network Attached Storage (NAS) when trying |
| 95 |
to perform operations on files that are open in other processes :pr:`424` |
| 96 |
- Fix ``delete_many()`` in ``RedisCache`` and ``MemcachedCache`` incorrectly reporting |
| 97 |
failed deletions due to comparing normalized keys against non-normalized keys :pr:`443` |
| 98 |
- Fix serializer returning an unbound variable error instead of ``None`` when a |
| 99 |
``pickle`` error is raised during serialization :pr:`448` |
| 100 |
- Fix ``add()`` in ``SimpleCache`` treating expired keys as still valid, preventing them |
| 101 |
from being overwritten until explicitly deleted :pr:`449` |
| 102 |
- Add ``valkey`` backend :pr:`441` |
| 103 |
|
| 104 |
|
| 105 |
Version 0.13.0 |
| 106 |
-------------- |
| 107 |
|
| 108 |
Released 2024-04-13 |
| 109 |
|
| 110 |
- default :func:`~hashlib.md5` may not be available in FIPS builds. We |
| 111 |
now do not access it at import time on ``FileSystemCache`` so developers |
| 112 |
have time to change the default. |
| 113 |
:func:`~hashlib.md5` will be lazy loaded when a new default is not provided |
| 114 |
|
| 115 |
|
| 116 |
Version 0.12.0 |
| 117 |
-------------- |
| 118 |
|
| 119 |
Released 2024-02-11 |
| 120 |
|
| 121 |
- ``RedisCache`` now supports callables as keys |
| 122 |
- Added ``MongoDB`` as a cache backend |
| 123 |
|
| 124 |
|
| 125 |
Version 0.11.0 |
| 126 |
-------------- |
| 127 |
|
| 128 |
Released 2024-02-10 |
| 129 |
|
| 130 |
- Drop python 3.7 support |
| 131 |
- Add python 3.11 support |
| 132 |
|
| 133 |
|
| 134 |
Version 0.10.2 |
| 135 |
-------------- |
| 136 |
|
| 137 |
Released 2023-01-31 |
| 138 |
|
| 139 |
- Fix broken release |
| 140 |
|
| 141 |
|
| 142 |
Version 0.10.1 |
| 143 |
-------------- |
| 144 |
|
| 145 |
Released 2023-01-22 |
| 146 |
|
| 147 |
- Fix logging pollution due to ``DynamoDB`` logging handler |
| 148 |
|
| 149 |
|
| 150 |
Version 0.10.0 |
| 151 |
-------------- |
| 152 |
|
| 153 |
Released 2023-01-22 |
| 154 |
|
| 155 |
- Improve error message when ``FileSystemCache`` methods are called with non-string keys. :pr:`170` |
| 156 |
- Added ``DynamoDb`` as a cache backend :pr:`209` |
| 157 |
|
| 158 |
Version 0.9.0 |
| 159 |
------------- |
| 160 |
|
| 161 |
Released 2022-06-26 |
| 162 |
|
| 163 |
- Add separate internal read/write clients to ``RedisCache`` to improve compatibility with flask-caching. :pr:`159` |
| 164 |
- Fix bug where cache entries would expire immediately when ``RedisCache.add`` |
| 165 |
was called without timeout. :pr:`157` |
| 166 |
- Improve ``FileSystemCache.set`` compatibility with Windows systems. :pr:`158` |
| 167 |
|
| 168 |
|
| 169 |
Version 0.8.0 |
| 170 |
------------- |
| 171 |
|
| 172 |
Released 2022-06-13 |
| 173 |
|
| 174 |
- Remove deprecated ``RedisCache.load_object`` and ``RedisCache.dump_object``. :pr:`147` |
| 175 |
|
| 176 |
|
| 177 |
Version 0.7.0 |
| 178 |
------------- |
| 179 |
|
| 180 |
Released 2022-05-14 |
| 181 |
|
| 182 |
- ``FileSystemCache`` now stores universal expiration timestamps using python's ``struct`` module. :pr:`126` |
| 183 |
- Drop support for Python 3.6. :pr:`134` |
| 184 |
|
| 185 |
|
| 186 |
Version 0.6.0 |
| 187 |
------------- |
| 188 |
|
| 189 |
Released 2022-01-18 |
| 190 |
|
| 191 |
- A custom ``hash_method`` may now be provided to ``FileSystemCache`` for |
| 192 |
hashing keys. :pr:`107` |
| 193 |
|
| 194 |
- Fix ``PermissionError`` issue with ``FileSystemCache`` on Windows. :pr:`111` |
| 195 |
|
| 196 |
|
| 197 |
Version 0.5.0 |
| 198 |
------------- |
| 199 |
|
| 200 |
Released 2021-12-31 |
| 201 |
|
| 202 |
- Cache types now have configurable serializers. :pr:`63` |
| 203 |
|
| 204 |
|
| 205 |
Version 0.4.1 |
| 206 |
------------- |
| 207 |
|
| 208 |
Released 2021-10-04 |
| 209 |
|
| 210 |
- Fix break in ``RedisCache`` when a host object was passed |
| 211 |
in ``RedisCache.host`` instead of a string. :pr:`82` |
| 212 |
|
| 213 |
|
| 214 |
Version 0.4.0 |
| 215 |
------------- |
| 216 |
|
| 217 |
Released 2021-10-03 |
| 218 |
|
| 219 |
- All cache types now implement ``BaseCache`` interface both |
| 220 |
in behavior and method return types. Thus, code written |
| 221 |
for one cache type should work with any other cache type. :pr:`71` |
| 222 |
- Add type information for static typing tools. :pr:`48` |
| 223 |
- ``FileNotFound`` exceptions will not be logged anymore |
| 224 |
in ``FileSystemCache`` methods in order to avoid polluting |
| 225 |
application log files. :pr:`69` |
| 226 |
|
| 227 |
|
| 228 |
Version 0.3.0 |
| 229 |
------------- |
| 230 |
|
| 231 |
Released 2021-08-12 |
| 232 |
|
| 233 |
- Optimize ``FileSystemCache`` pruning. :pr:`52` |
| 234 |
- Fix a bug in ``FileSystemCache`` where entries would not be removed |
| 235 |
when the total was over the threshold, and the entry count would be |
| 236 |
lost. :pr:`52` |
| 237 |
- ``FileSystemCache`` logs system-related exceptions. :pr:`51` |
| 238 |
- Removal of expired entries in ``FileSystemCache`` is only triggered |
| 239 |
if the number of entries is over the ``threshold`` when calling |
| 240 |
``set``. ``get`` ``has`` still return ``None`` and ``False`` |
| 241 |
respectively for expired entries, but will not remove the files. All |
| 242 |
removals happen at pruning time or explicitly with ``clear`` and |
| 243 |
``delete``. :pr:`53` |
| 244 |
|
| 245 |
|
| 246 |
Version 0.2.0 |
| 247 |
------------- |
| 248 |
|
| 249 |
Released 2021-06-25 |
| 250 |
|
| 251 |
- Support for Python 2 has been dropped. Only Python 3.6 and above are |
| 252 |
supported. |
| 253 |
- Fix ``FileSystemCache.set`` incorrectly considering value overrides |
| 254 |
on existing keys as new cache entries. :issue:`18` |
| 255 |
- ``SimpleCache`` and ``FileSystemCache`` first remove expired |
| 256 |
entries, followed by older entries, when cleaning up. :pr:`26` |
| 257 |
- Fix problem where file count was not being updated in |
| 258 |
``FileSystemCache.get`` and ``FileSystemCache.has`` after removals. |
| 259 |
:issue:`20` |
| 260 |
- When attempting to access non-existent entries with ``Memcached``, |
| 261 |
these will now be initialized with a given value ``delta``. |
| 262 |
:pr:`31` |
| 263 |
|
| 264 |
|
| 265 |
Version 0.1.1 |
| 266 |
------------- |
| 267 |
|
| 268 |
Released 2020-06-20 |
| 269 |
|
| 270 |
- Fix ``FileSystemCache`` on Windows. |