hdachev/fakeredis — pull request #7 by jahraphael (2014-08-16 04:42:09+00:00)
Title: Added support for the extended SET paramaters introduced in 2.6.12:

EX seconds -- Set the specified expire time, in seconds.
PX milliseconds -- Set the specified expire time, in milliseconds.
NX -- Only set the key if it does not already exist.
XX -- Only set the key if it already exist.