node-redis icon indicating copy to clipboard operation
node-redis copied to clipboard

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

Open armanhi opened this issue 8 months ago • 1 comments

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)

armanhi avatar Feb 18 '25 18:02 armanhi