ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / Managing databases / Big Data / Managing REDIS databases
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Changes the value of a key on a Redis server.
Example
gRedis is redisConnection
gRedis.Server = "MyRedisServer:7001"
 
RedisSet(gRedis, "MyKey", "MyValue", 1h)
Syntax
RedisSet(<Connection> , <Key> , <Value> [, <Validity period>])
<Connection>: redisConnection variable
Name of the redisConnection variable that corresponds to the Redis server connection.
<Key>: Character string
Name of the key the value will be assigned to.
<Value>: Character string
New key value. This new value can be a UTF-8, Unicode or binary string.
<Validity period>: Optional duration
Key expiration time in milliseconds. This parameter can correspond to:
  • an integer corresponding to the number of milliseconds,
  • a Duration variable,
  • the duration in a readable format (e.g., 1 s).
Minimum version required
  • Version 27
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/02/2023

Send a report | Local help