Skip to content

bpo-46622: Async support for lru_cache (and cache)#31495

Closed
uranusjr wants to merge 2 commits into
python:mainfrom
uranusjr:lru-cache-async
Closed

bpo-46622: Async support for lru_cache (and cache)#31495
uranusjr wants to merge 2 commits into
python:mainfrom
uranusjr:lru-cache-async

Conversation

@uranusjr

@uranusjr uranusjr commented Feb 22, 2022

Copy link
Copy Markdown
Contributor

The functools.lru_cache and cache decorators can now decorate an async
function. This caches a wrapper to the coroutine returned by the
function, and awaits it when the wrapper is first awaited.
@rhettinger

Copy link
Copy Markdown
Contributor

Marking as do-not-merge. This needs substantial discussion and buy-in before going down this path.

@rhettinger

Copy link
Copy Markdown
Contributor

Marking as closed because the tracker discussion found a simpler, less invasive, more logical approach.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants