mirror of
https://github.com/kennethreitz-archive/redis-docs.git
synced 2026-06-05 15:30:19 +00:00
20 lines
539 B
ReStructuredText
20 lines
539 B
ReStructuredText
`|Redis Documentation| <index.html>`_
|
||
**SetCommand: Contents**
|
||
`SET \_key\_ \_value\_ <#SET%20_key_%20_value_>`_
|
||
`Return value <#Return%20value>`_
|
||
SetCommand
|
||
==========
|
||
|
||
#sidebar `StringCommandsSidebar <StringCommandsSidebar.html>`_
|
||
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 <ReplyTypes.html>`_
|
||
.. |Redis Documentation| image:: redis.png |