In redis there is a SETEX command that allows me to set a key that expires, is there a multi-set version of this command that also has a TTL?
SETEX
both MSET and MSETNX commands do not have such an option.
MSET
MSETNX
I was also looking for this kind of operation. I didn't find anything, so I did it with MULTI/EXEC:
MULTI expire key1 expire key2 expire key3 EXEC
1.4m articles
1.4m replys
5 comments
57.0k users