Please find the below scenario:-
I have added two timeseries keys in redis (SUCCESS and FAILED).
For every timestamp, if the order status gets SUCCESS or FAILED then flag 1 is added to the key (SUCCESS or FAILED) as a sample.
I want to fetch the Last 10 consecutive FAILED samples from the same USER ID(type string).
Questions -
1- Can I add user id attached with the samples?
2- How to get the last 10 consecutive FAILED samples from the same USER ID(type string).
Data source - Redis