discord.js icon indicating copy to clipboard operation
discord.js copied to clipboard

Async cache functions (filter/keepOverLimit)

Open mxz7 opened this issue 2 years ago • 0 comments

Which application or package is this feature request for?

discord.js

Feature

image

I think it would be a good addition/change and I don't see any problems that could come about from it but I could be massively wrong.

Would help to decide whether users should be removed from cache based on if they're an active user from a db query or fetching something from redis etc.

Ideal solution or implementation

Allow cache functions (filter/keepOverlimit) to return Promise

Alternative solutions or implementations

No response

Other context

No response

mxz7 avatar Jul 29 '23 17:07 mxz7