The command is exactly equivalent to the following group of commands:
SET _key_ _value_ EXPIRE _key_ _time_
The operation is atomic. An atomic SET+EXPIRE operation was already providedusing MULTI/EXEC, but SETEX is a faster alternative providedbecause this operation is very common when Redis is used as a Cache.