Redis has a SETEX command that allows me to set the key to expire, is there a layered version of this command that also has TTL?
SETEX
both MSET and MSETNX do not have this option.
MSET
MSETNX
I also looked for such an operation. because I did not find anything with id with MULTI / EXEC:
MULTIexpire key1expire key2expire key3EXEC
EVAL "<multi_ttl_script>" N key1 key2 ... value1 ttl1 value2 ttl2 ...