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

[Feature Request]: Store JSON responses as objects in the cache instead of stringifying them #361

Open
starrett67 opened this issue Oct 15, 2024 · 1 comment

Comments

@starrett67
Copy link

starrett67 commented Oct 15, 2024

Summary

I would like to request a feature enhancement that allows JSON responses to be stored as objects in the cache, instead of stringifying them.

Problem

Currently, when caching JSON responses, the package stores them as strings. For my use case, I handle large JSON bodies that can exceed 10MB in size. Every time I retrieve a response from the cache, I noticed that the response times were extremely slow for just reading data from an in memory cache. Parsing JSON objects depending on the size can be introducing a pretty significant performance issue that can be avoided.

Proposed Solution

Allow developers to provide an override method that handles storing the response object in cache

@starrett67
Copy link
Author

I just noticed there is a related discussion to this topic: #329

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