- Added
cache_contains()for read-only key lookup. - Changed cross-loop cache access to auto-reset and rebind to the current event loop.
- Added
AlruCacheLoopResetWarningwhen an auto-reset happens due to event loop change. - Forwarded
cache_close(wait=...)for bound methods.
- Added a
jitterparameter to randomise TTL. - Raise
RuntimeErrorwhen cache is used by different loop.
- Fixed cancelling of task when all tasks waiting on it have been cancelled.
- Fixed DeprecationWarning from asyncio.iscoroutinefunction.
- Fixed a memory leak on exceptions and minor performance improvement.
- Fixed an error when there are pending tasks while calling
.cache_clear().
- Fixed a
KeyErrorthat could occur when usingttlwithmaxsize. - Dropped
typing-extensionsdependency in Python 3.11+.