How to use liststreamkeyitems

+1 vote
Hi,

I need some help understanding the syntax of liststreamkeyitems. If I have 10 streams from a single key, what is the command to retrieve the 3rd most recently published stream item?

In particular, how does the "count" and "start" works?
asked Sep 15, 2020 by MC_Joe

1 Answer

0 votes

From the documentation:

Use count and start to retrieve part of the list only, with negative start values (like the default) indicating the most recent items.

So in your case you would set count=1 and start=-3

answered Sep 17, 2020 by MultiChain
...