Skip to content

Async and sync methods and BaseCache #67

@bufke

Description

@bufke

Hello,

As noted, the Django base cache backend has a number of methods for sync and async functions. Not all implemented in this project. I'm curious if you have plans on where to take this project with async and sync support.

Sometimes 🙃 these base functions and their sync_to_async a-prefix functions work as intended. A backend can implement the sync version and the async may actually work, at a performance cost. This doesn't always work in the real world, but when it does it means a developer could theoretically slowly implement async. A holy grail of converting projects from sync to async.

I'm curious if you are open to or have thoughts on supporting an async client with sync fallback. I imagine the async client would just get sync versions, which call async_to_sync.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is neededquestionFurther information is requested

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions