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

Does the Starlette integration store a dict only to try and parse it as JSON? #478

Closed
haggen opened this issue Aug 7, 2022 · 0 comments
Closed

Comments

@haggen
Copy link
Contributor

haggen commented Aug 7, 2022

See

It tris to parse a JSON string. But a few lines below cache data is set as a simple dict.

await self.cache.set(key, {'data': data}, self.expires_in)

Base framework class as reference:

self.cache.set(key, json.dumps({'data': data}), self.expires_in)

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