rememberable icon indicating copy to clipboard operation
rememberable copied to clipboard

Redis memory issue

Open WolFZonE opened this issue 4 years ago • 3 comments

Hello, We have a problem where Redis key created by this package is using alot of memory. It's named like this : br-local:5f58eab33aae5665049267:standard_ref and contains values like this: redis Even when using flushCache() method, these records are not cleared... Is this normal behavior?

WolFZonE avatar Sep 09 '20 15:09 WolFZonE

I'm not sure - there seems to be a long prefix to your key that I've not seen. Are you doing something funky that creates that prefix, as I would have expected the key to start with rememberable?

dwightwatson avatar Sep 09 '20 22:09 dwightwatson

@dwightwatson That's just the $rememberCachePrefix, I added that to see from which model these values come from.

WolFZonE avatar Sep 10 '20 09:09 WolFZonE

Is it possible that the rememberCachePrefix isn't being used when flushing the cache, hence the build-up?

I've not seen this myself - so see if you're able to determine the cause of this, or provide a PR that fixes it.

dwightwatson avatar Sep 10 '20 09:09 dwightwatson