Skip to content

Instantly share code, notes, and snippets.

Avatar

James Diecidue amplicity

View GitHub Profile
View about-james.txt
___ ______ _ _ _
|_ | | _ (_) (_) | |
| | __ _ _ __ ___ ___ ___ | | | |_ ___ ___ _ __| |_ _ ___
| |/ _` | '_ ` _ \ / _ \/ __| | | | | |/ _ \/ __| |/ _` | | | |/ _ \
/\__/ / (_| | | | | | | __/\__ \ | |/ /| | __/ (__| | (_| | |_| | __/
\____/ \__,_|_| |_| |_|\___||___/ |___/ |_|\___|\___|_|\__,_|\__,_|\___|
I'm a founder, artist, and software engineer who is passionate about furthering humanity through innovation, providing greater access to equality, and solving climate change.
View for-ray.js
class Store{
constructor(){
this.store = new Map();
}
put(key, value, ttl){
ttl = Date.now() + ttl;
this.store.set(key, {value,ttl});
this._cleanOldKeys();
}