|
|
|
|
|
RedisSet (Function) In french: RedisAffecte Changes the value of a key on a Redis server. New in version 2025This function can also be used to manipulate data on a Valkey server. 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 or Secret string Name of the key the value will be assigned to.
New in version 2025Secret strings: If you use the secret string vault, the type of secret string used for this parameter must be "ANSI or Unicode string". To learn more about secret strings and how to use the vault, see Secret string vault. <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 representing the number of milliseconds,
- a Duration variable,
- the duration in a readable format (e.g., 1 s).
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|