Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NO-CACHE support #46

Open
Guibod opened this issue Feb 17, 2023 · 1 comment
Open

NO-CACHE support #46

Guibod opened this issue Feb 17, 2023 · 1 comment

Comments

@Guibod
Copy link

Guibod commented Feb 17, 2023

Could it be possible to provide a dummy cache backend that does nothing ?

I’m in need of a common interface for my client with or without cache (for instance with disabled) so i’ll need to implement my own no cache backend.

@zhukovgreen
Copy link
Collaborator

Hey, I don't think this is something that can be used by others, so I see the option only to fork the repo and add the dummy backend there.

In order to add a new backend you have to implement BackendBase and CondifgBase interfaces from https://github.com/cr0hn/aiohttp-cache/blob/master/aiohttp_cache/backends.py . And then refer them in the setup.py similar with this example https://github.com/cr0hn/aiohttp-cache/blob/master/aiohttp_cache/setup.py#L48 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants