Skip to content

lesichkovm/RegistryJS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

RegistryJS

Install

<script src="https://cdn.jsdelivr.net/gh/lesichkovm/RegistryJS@0.0.1/Registry.js"></script>
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();

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published