-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cachimo.clear() should also clear all timeouts #1
Comments
Hey @gr2m, sorry for late response. Very good suggestion! I think we can store them inside P.S. If you want you can open PR or I can do it. 👷 |
Happy to send a PR :) I think making |
@gr2m What I mean is |
If I understand you correctly, it would work like this? cachimo.put('key', 'value', 1000)
cachimo.stop()
setTimeout(() => {
cachimo.get('key') // 1000
}, 2000) calling Okay if I go ahead and send a pull request to update |
@gr2m Yeah for now update But keep this issue open because of our discussion. Thanks again @gr2m ! 👍 |
I already created and merged these PRs: /cc @gr2m |
thanks a lot! |
Hey Benas, thanks for the neat little key/value memory store!
I have one feature request: when testing with cachimo, the process will not end until all timeouts are done. It would be nice if
cachimo.clear()
would clear all timeouts, too. I could try to add that if this is within the scope of the library?The text was updated successfully, but these errors were encountered: