@lesichkovm/registryjs
v0.0.1
Published
Registers variables in the local storage
Downloads
3
Readme
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();