Skip to content

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

@starrett67

Description

@starrett67

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions