set集合操作 添加元素:sadd set value1 value2... 查看元素:smembers set 移除元素:srem set member 查看集合中的元素个数:scard set 获取多个几个的交集:sinter set1 set2 获取多个集合的并集:sunion set1 set2 获取多个集合的差集:sdiff set1 set2 哈希操作 redis中的哈希格式,类似于python里面的字典套字典 添加值:hset field value将哈希表key中的域field的…
哈希(hash)函数 hSet 命令/方法/函数 Adds a value to the hash stored at key. If this value is already in the hash, FALSE is returned. 添加一个VALUE到HASH中.如果VALUE已经存在于HASH中,则返回FALSE. Parameters key hashKey value Return value LONG 1 if value didn't exist and was added…