Skip to content

Instantly share code, notes, and snippets.

Created Jul 29, 2020
What would you like to do?
set(key, value) {
let result = super.set(key, value);
// Update the frequency of the key
return result;
get(key) {
let exists = super.get(key);
// Don't update non existing gets
if (exists)
return exists;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment