You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Notice that there is no .expire(...) method called in lines 82-86. For this feature request, you would need to add an .expire(...) to lines 82-86, similar to how it is in lines 124-L129.
Hello @crayolakat@Arique1104, sorry it took me so long to get to this. I made the following change a while ago.
However, I was trying to write a test for it. After some digging around, I wasn't able to find any tests for Redis in user.js, texter.test/texter.test.js, cacheable_queries/user.test.js, or test/test_helpers.js. I'm wondering if I should proceed as is. Also I was thinking if there is a necessity to expire the existing cache that currently has no expiration with EXPIRE NX -- Set expiry only when the key has no expiry or to override them with EXPIRE GT -- Set expiry only when the new expiry is greater than current one. Please let me know if you get a chance, thanks.
Problem
The texterroles Redis keys don't have an expiration date and stay in the cache forever.
Solution
It would be nice to have an expiration date so that old and outdated texterroles will get purged. Maybe 365 days?
The text was updated successfully, but these errors were encountered: