Symisc Vedis

An Embeddable Datastore Engine



Vedis Built-in Commands - Key/Value.

Command

DECRBY key decrement


Description


Decrements the number stored at key by decrement. 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 decrement


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> DECRBY test 5
20

vedis> GET test
20





Symisc Systems
Copyright © Symisc Systems