If one need to save multiple key with their values and corresponding TTL, they have to do it by interacting with redis multiple times which increases IO operation. So to minimise this, there should be mset with TTL feature in redis. This feature could be very helpful. Is there any other alternative way, we can save multiple keys with TTL without interacting with redis multiple times.

Comment From: judeng

This might be useful in some scenarios, but I want to share my opinion: mset is not designed for performance, but an atomic operation. Compared with the setex command using pipeline, I think that the IO overhead will not be much higher. In fact, compared with mset+expire and setex, when the IO overhead is the same, setex should have higher performance, because there is one less lookupKey overhead. So , msetetx (assuming that's the name) will not reduce IO, but reduces CPU overhead