1.1.0 • Published 3 years ago
keyvee v1.1.0
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", () => {});