Redis comando Sunion
Redis comando Sunion devuelve un conjunto dado y establezca. No hay un conjunto de claves como un conjunto vacío.
gramática
Redis Sunion sintaxis del comando básico es el siguiente:
redis 127.0.0.1:6379> SUNION KEY KEY1..KEYN
versiones disponibles
> = 1.0.0
Valor de retorno
Y establecer miembros de la lista.
Ejemplos
redis 127.0.0.1:6379> SADD myset1 "hello" (integer) 1 redis 127.0.0.1:6379> SADD myset1 "world" (integer) 1 redis 127.0.0.1:6379> SADD myset1 "bar" (integer) 1 redis 127.0.0.1:6379> SADD myset2 "hello" (integer) 1 redis 127.0.0.1:6379> SADD myset2 "bar" (integer) 1 redis 127.0.0.1:6379> SUNION myset1 myset2 1) "bar" 2) "world" 3) "hello" 4) "foo"