npm.io
1.1.0 • Published 4 years ago

keyvee

Licence
MIT
Version
1.1.0
Deps
2
Size
3 kB
Vulns
0
Weekly
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", () => {});