YouTip LogoYouTip

Strings Mset

# Redis MSET Command [!(#) Redis Strings](#) The Redis MSET command is used to set one or more key-value pairs simultaneously. ### Syntax The basic syntax of the Redis MSET command is as follows: redis 127.0.0.1:6379> MSET key1 value1 key2 value2 .. keyN valueN ### Available Versions >= 1.0.1 ### Return Value Always returns OK. ### Example redis 127.0.0.1:6379> MSET key1 "Hello" key2 "World" OK redis 127.0.0.1:6379> GET key1 "Hello" redis 127.0.0.1:6379> GET key2 1) "World" [!(#) Redis Strings](#) AI is thinking... [](#)(#) (#)[](#) [Byte Ark Coding Plan supports mainstream large models such as Doubao, GLM, DeepSeek, Kimi, MiniMax, etc., with official direct supply that is stable and reliable. Configuration Guide Β₯9.9/month Activate Now](https://maas.xfyun.cn/modelSquare?ch=maas_lm_l
← Strings MsetnxStrings Setex β†’