SetCommand: Contents
  SET _key_ _value_
    Return value
    See also

SetCommand

SET _key_ _value_

Time complexity: O(1)
Set the string value as value of the key.The string can't be longer than 1073741824 bytes (1 GB).

Return value

Status code reply

See also

  • SETNX is like SET but don't perform the operation if the target key already exists.