Closed Regalijan closed 3 years ago
Does this work? Can you test it? @Wolftallemo
From my own testing it appears to work, although some things aren't set in cache even though they probably should be (but that's for another pr)
I've began testing with this functionality on a bot in multiple servers, I should have reliable results within a day or two.
No errors have come around from these changes over the past 3 days.
@evaera There's no issues with this but due to it being an edit to caches, I would prefer it if you did the final review and merging.
Allow setting a custom TTL for each collection instead of clearing everything every 30 seconds.
Cache.set
now takes an expiry parameter, which will be checked by the autoclear every 60 seconds. Setting the expiry to 0 will preserve the old behavior of it being cleared on every autoclear.