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

XSD caching #1

Open
chocobn69 opened this issue Jan 27, 2021 · 0 comments
Open

XSD caching #1

chocobn69 opened this issue Jan 27, 2021 · 0 comments

Comments

@chocobn69
Copy link
Member

We should be able to pass a cache system to cdiscountapi so it use it with zeep

https://python-zeep.readthedocs.io/en/master/client.html

The cache system must implement those two methods :

if self.cache:
    response = self.cache.get(url)
    if response:
        return bytes(response)

    content = self._load_remote_data(url)

    if self.cache:
        self.cache.add(url, content)
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

1 participant