Symisc Vedis

An Embeddable Datastore Engine



Vedis Built-in Commands - Hash.

Command

HSETNX key field value


Description


Sets field in the hash stored at key to value, only if field does not yet exist. If key does not exist, a new key holding a hash is created. If field already exists,
this operation has no effect.


Return value


boolean: TRUE on success. FALSE otherwise.


Example


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



vedis> HSETNX config path "/usr/local/etc"
true
vedis> HSETNX config path "/home/docs"
false




Symisc Systems
Copyright © Symisc Systems