Closed achilsh closed 4 years ago
step 1: sadd one key, like this: test_set_key_one := "{xxx}.test_set_key_1" v1 := 12 v2 :="test_v2" v3 := 81231.13 sadd(test_set_key_one, v1, v2, v3)
step 2: sadd second key, like this: test_set_key_second := "{xxx}.test_set_key_2" v4 := 12 v5 := "aaaa" v6 := 90.12 sadd(test_set_key_second , v4, v5, v6)
step3: sdiff(test_set_key_one, test_set_key_second) return the same of test_set_key_one set: 12, "test_v2", 81231.13
not is : "test_v2", 81231.13
you can repeat process above test case, the result is the same to my.
but when i iput the process in redis-cli terminal, the result is no problem.
step 1: sadd one key, like this: test_set_key_one := "{xxx}.test_set_key_1" v1 := 12 v2 :="test_v2" v3 := 81231.13 sadd(test_set_key_one, v1, v2, v3)
step 2: sadd second key, like this: test_set_key_second := "{xxx}.test_set_key_2" v4 := 12 v5 := "aaaa" v6 := 90.12 sadd(test_set_key_second , v4, v5, v6)
step3: sdiff(test_set_key_one, test_set_key_second) return the same of test_set_key_one set: 12, "test_v2", 81231.13
not is : "test_v2", 81231.13
you can repeat process above test case, the result is the same to my.
but when i iput the process in redis-cli terminal, the result is no problem.