Closed SeeThruHead closed 6 years ago
is there some way to show what's in the cache on every execution? and what memoizee is using to index the cache? a debug mode perhaps?
@SeeThruHead what you shown doesn't expose all the details. Some questions:
R.pipeP(..)
call?input
) with which the memoized function is called? What is this exactly an object? string ?I'm gonna close this as it's not a bug report or feature request. Still feel free to continue discussion below
thank you for taking the time to help, the function length resulting is 1
and the argument for each call is typeof string
In such case cache hit will only occur if function is called with string it was already called with. There's on other possibility.
If you feel it's otherwise, increase logging (ensure that argument is indeed string) and ensure that indeed function that's put to memoizee
has length
1
thank you very much, this very incredibly helpful to track down the offending cause.
in my local environment:
NODE_ENV=production (on qa server)
I wouldn't ask this if i have a clue what was happening, hoping you might have an idea