`|Redis Documentation| `_
**SetCommand: Contents**
`SET \_key\_ \_value\_ <#SET%20_key_%20_value_>`_
`Return value <#Return%20value>`_
SetCommand
==========
#sidebar `StringCommandsSidebar `_
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 `_
.. |Redis Documentation| image:: redis.png