I am trying to store callbacks in my database, and use them later from another session.
Is it possible?
Lets make some code for example:
// One session
var callback = () => {
console.log("Hey! This is a callback!");
}
db.store("myCallback", callback);
// Another session
db.get("myCallback")(); // Output: "Hey! This is a callback!"
EDIT - Just to clarify my context, we can refer to this question: Question