vertx / io.vertx.kotlin.redis / io.vertx.redis.RedisClient / evalAwait

evalAwait

suspend fun RedisClient.evalAwait(script: String, keys: List<String>, args: List<String>): JsonArray

Execute a Lua script server side. Due to the dynamic nature of this command any response type could be returned for This reason and to ensure type safety the reply is always guaranteed to be a JsonArray.

When a reply if for example a String the handler will be called with a JsonArray with a single element containing the String.

Parameters

script - Lua script to evaluate

keys - List of keys

args - List of argument values

handler - Handler for the result of this call.

Return