MT#63930 Add NGCPDlgCounters:list function

The fuction has the scope to get the element of a redis list
and return them back in form of a string.

Change-Id: I721dfb67e537d8e42d21e0b564b2a7dc63bb9254
(cherry picked from commit 7548c5a8c5)
mr12.5
Marco Capetta 1 month ago
parent c0ea2de590
commit 8147970509

@ -217,6 +217,15 @@ end
KSR.dbg(string.format("central:get[%s]=>%s - %s\n", key, tostring(res), key));
return res;
end
function NGCPDlgCounters:list(key)
if not self.pair:test_connection() then
self.pair:connect()
end
local res = self.central.client:lrange(key, 0, -1);
KSR.dbg(string.format("central:list[%s]=>%s\n", key, utable.tostring(res)));
return utable.tostring(res);
end
-- class
return NGCPDlgCounters

Loading…
Cancel
Save