You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: