keyvee
v1.1.0
Published
KeyV extended with Event Emitters
Downloads
15
Maintainers
Readme
KeyVee
KeyVee is an extension of KeyV which emits events for each function, and is cross compatible with KeyV providers. All functionality is thus the same as KeyV's.
Usage
Install KeyVee
npm install --save keyvee
Create a new KeyVee instance
// CommonJS
const KeyVee = require("keyvee");
// ES6 / TypeScript
import KeyVee from "keyvee";
const keyvee = new KeyVee();
Events
keyvee.emitter.on("set", (key, value) => {});
keyvee.emitter.on("get", (key) => {});
keyvee.emitter.on("TTL", (key, value) => {});
keyvee.emitter.on("delete", (key, value) => {});
keyvee.emitter.on("clear", () => {});