Symisc Vedis

An Embeddable Datastore Engine



Vedis Built-in Commands - Key/Value.

Command

INCRBY key increment


Description


Increments the number stored at key by increment. If the key does not exist, it is set to 0 before performing the operation. An error is returned if the key contains a value of the wrong type or contains a string that can not be represented as integer. This operation is limited to 64 bit signed integers.


Return value


Integer: The value of key after the inrement


Example


Refer to the download page for some C/C++ samples on how to invoke this command from your host application.



vedis> SET test 25
true
vedis> INCRBY test 5
30

vedis> GET test
30





Symisc Systems
Copyright © Symisc Systems