ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / Managing databases / Big Data / Managing REDIS databases
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Executes a command on a Redis server and retrieves the result.
New in version 2025
This function can also be used to manipulate data on a Valkey server.
Example
gRedis is redisConnection
gRedis.Server = "MonServeurRedis:7001"

// Exécution d'une commande utilisant des paramètres simples
r1 is redisResponse = RedisExecuteCommand(gRedis, "SET MaClé MaValeur")

// Exécution d'une commande utilisant un paramètre avec espace
// et un paramètre de type buffer
r2 is redisResponse = RedisExecuteCommand(gRedis, "SET", "Clé avec espace", bufImage)
Syntax
<Result> = RedisExecuteCommand(<Connection> , <Command> [, <Parameter 1> [... [, <Parameter N>]]])
<Result>: redisResponse variable
redisResponse variable that contains the result of the command execution.
<Connection>: redisConnection variable
Name of the redisConnection variable that corresponds to the Redis server connection.
<Command>: Character string
Text of the Redis command to execute.
This command can contain parameters separated by space characters.
<Parameter 1>: Type of optional parameter
First optional parameter of the command. This parameter allows you to pass strings containing spaces or binary values to the command being run.
Note: Strings are converted to UTF8 when the Command is sent to the Redis server.
<Parameter N>: Type of optional parameter
Nth command parameter. This parameter allows you to pass strings containing spaces or binary values to the command being run.
Note: Strings are converted to UTF8 when the Command is sent to the Redis server.
Business / UI classification: Business Logic
Component: wd300big.dll
Minimum version required
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help