Skip to content

Question: JSON GET and SET using JSON.parse and JSON.stringify #2899

Open
@armanhi

Description

@armanhi

Hi.

From what I can see in https://github.com/redis/node-redis/blob/33cdc007466b336f7f7c82669e8312d06df83a31/packages/json/lib/commands/GET.ts, both GET and SET methods are using JSON.parse and JSON.stringify.

Is it really needed? Could it be avoided? Both method are CPU-intensive and seem counterproductive to RedisJSON usage (handling JSON directly)

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