We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
setex(test, 5, 'test val') get(test) > 'test val' # delay 5s get(test) > null keys() > test
The text was updated successfully, but these errors were encountered:
Hm, interesting. get should be deleting the key, though keys is also missing a cleanup for expired keys. something like this:
get
keys
keys() { const keys = Object.keys(raw); keys.forEach(key => { if (expires.has(key) && expires.isExpired(key)) { this.delete(key); } }); return Object.keys(raw); },
However I need to write some tests for this.
Sorry, something went wrong.
No branches or pull requests
The text was updated successfully, but these errors were encountered: