mirror of
https://github.com/kennethreitz-archive/redis-docs.git
synced 2026-06-05 23:40:18 +00:00
20 lines
566 B
ReStructuredText
20 lines
566 B
ReStructuredText
`|Redis Documentation| <index.html>`_
|
||
**StrlenCommand: Contents**
|
||
`STRLEN \_key\_ (Redis > <#STRLEN%20_key_%20(Redis%20%3E>`_
|
||
`Return value <#Return%20value>`_
|
||
StrlenCommand
|
||
=============
|
||
|
||
#sidebar `StringCommandsSidebar <StringCommandsSidebar.html>`_
|
||
STRLEN \_key\_ (Redis >
|
||
=======================
|
||
|
||
2.1.8) = *Time complexity: O(1)*
|
||
Returns the length of the string stored at the specified *key*.
|
||
|
||
Return value
|
||
------------
|
||
|
||
`Integer reply <ReplyTypes.html>`_, specifically: the length of the
|
||
string.
|
||
.. |Redis Documentation| image:: redis.png |