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

Cache per req.body variable

Open mattou78400 opened this issue 2 years ago • 0 comments

Hi,

I have a route that will send back one of two objects given what's sent in req.body.variable

That caching technique has been great for that same route when only one version of the object was returned, but I can't figure out how to make it work when the output depends on the input variable

What would be the correct way to do this?

thanks!

mattou78400 avatar Aug 19 '22 05:08 mattou78400