lengthIMD.length()Returns the number of key-value pairs in the In Memory Data (cache). Example ScriptResultIMD.put("newTempPassword", "123456"); IMD.put("newTempUser", "Alex"); console.log(IMD.length()); 2