
An Embeddable Datastore Engine |
Tweet |
Follow @Vedis |
Vedis Built-in Commands - Key/Value.
Command
STRLEN key
Description
Returns the length of the string value stored at key. An error is returned when key holds a non-string value.
Return value
Integer: The length of the string at key, or 0 when key does not exist.
Example
Refer to the download page for some C/C++ samples on how to invoke this command from your host application.
vedis> SET test "Hello"
(true)
vedis> STRLEN test
5
vedis> APPEND test " World!"
12
vedis> STRLEN test
12
(true)
vedis> STRLEN test
5
vedis> APPEND test " World!"
12
vedis> STRLEN test
12

Copyright © Symisc Systems