length

IMD.length()

Returns the number of key-value pairs in the In Memory Data (cache).

Example

IMD.put("newTempPassword", "123456");
IMD.put("newTempUser", "Alex");

console.log(IMD.length());
2