I have a list and I'm adding elements using RPUSH which returns the updated length of the list. My question is that, is it reliable to use the returned length - 1 as the index of the newly inserted item?
By reliable I mean, If I have multiple connections to Redis doing the same operation is it guaranteed there won't be any overlapping like the returned length actually returning after two RPUSH that occurred simultaneously or is that Redis' list operation atomic by default or do I need transactions?