@lesichkovm/registryjs

0.0.1 • Public • Published

RegistryJS

const registry = new Registry();

Setting Values

// add a key with an object value to the registry
registry.set("user", {
    "name": "John Doe"
});

// add a key, which will expire in an hour
registry.set("token", "authtoken", 60*60);

Getting Values

registry.get("user");

registry.get("token");

Removing Values

registry.remove("user");

registry.remove("token");

Empty All Values

registry.empty();

Readme

Keywords

none

Package Sidebar

Install

npm i @lesichkovm/registryjs

Weekly Downloads

0

Version

0.0.1

License

MIT

Unpacked Size

4.92 kB

Total Files

3

Last publish

Collaborators

  • lesichkovm