get

IMD.get(key)

Returns a value specified by a key, or null if the cache contains no such key.

Paramaters

The method has the following parameters:

ParametersDescription
keyKey under which a data is stored.
Example
IMD.put("newTempPassword", "123456");

var tempPassword = IMD.get("newTempPassword");
console.log(tempPassword);

var anotherPassword = IMD.get("oldPassowrd"); // doesn't exist
console.log(anotherPassword);
12345
null