Set NX = TRUE to prevent overwriting a key that already exists.
Value
Returns the Redis status "OK" unless NX = TRUE. When
NX = TRUE, returns 1 if successful, 0 otherwise.
Details
If the source and destination name are the same an error is returned. If newkey already exists it is overwritten unless NX = TRUE, in which case the
operation fails.