vertx / io.vertx.redis / RedisTransaction / setnx

setnx

abstract fun setnx(key: String, value: String, handler: Handler<AsyncResult<String>>): RedisTransaction

Set the value of a key, only if the key does not exist

Parameters

key - Key of which value to set

value - New value for the key

handler - Handler for the result of this call.

Since
Redis 1.0.0 group: string