当前位置:网站首页>redis中value/set
redis中value/set
2022-07-01 11:19:00 【每日一悟】
特征:无序、去重
sadd k1 s ss sss ssss s
smembers k1 s ss sss ssss
srem k1 s ss
smembers k1 sss ssss
sadd k2 1 2 3 4 5
sadd k3 4 5 6 7 8
smembers k2 1 2 3 4 5
smembers k3 4 5 6 7 8
sinter k2 k3 4 5 交集
sinterstore dest k2 k3 交集
smembers dest 4 5
sunion k2 k3 1 2 3 4 5 6 7 8 并集
sdiff k2 k3 1 2 3 差集k2 - k2 k3的并集
sdiff k3 k2 6 7 8 差集k3 - k2 k3的并集
sadd k1 s ss sss ssss sssss ssssss sssssss
srandmember k1 5 -5 10 -10
srandmember key count
count正数:取出一个去重的结果集(不能超过已有集)
count负数:取出一个带重复的结果集,一定满足你要的数量
如果为0:不返回
spop key:取出一个
边栏推荐
- 商汤进入解禁期:核心管理层自愿禁售 强化公司长期价值信心
- Global filter (processing time format)
- Nordic nrf52832 flash 下载M4错误
- 今天开户今天能买股票吗?在线开户是很安全么?
- Personal mall two open Xiaoyao B2C mall system source code - Commercial Version / group shopping discount seckill source code
- 金鱼哥RHCA回忆录:DO447使用Ansible与API通信--使用Ansible Tower API启动作业
- [buuctf.reverse] 144_ [xman2018 qualifying]easyvm
- 证券账户销户后果 开户安全吗
- 流动性质押挖矿系统开发如何制作,dapp丨defi丨nft丨lp流动性质押挖矿系统开发案例分析及源码
- 微信小程序开发 – 用户授权登陆「建议收藏」
猜你喜欢

Personal mall two open Xiaoyao B2C mall system source code - Commercial Version / group shopping discount seckill source code

英特尔实验室公布集成光子学研究新进展

Database experiment report (II)

Tianrunyun, invested by Tian Suning, was listed: its market value was 2.2 billion Hong Kong, and its first year profit decreased by 75%

Neurips 2022 | cell image segmentation competition officially launched!

In June 2022, it was the first programming language?!

Tempest HDMI leak receive 5

Why must we move from Devops to bizdevops?

Matrix of numpy

CVPR22 |CMT:CNN和Transformer的高效结合(开源)
随机推荐
China's cellular Internet of things users have reached 1.59 billion, and are expected to surpass mobile phone users within this year
索引失效的几种情况
提问:测试工程师应该具备哪些职业素养?
Can servers bundled with flask be safely used in production- Is the server bundled with Flask safe to use in production?
Unittest框架中测试用例编写规范以及如何运行测试用例
node版本管理器nvm安装及切换
sshd_config 中 PermitRootLogin 的探讨
Tempest HDMI leak receive 5
Internal control of fund managers
Website source code whole site download website template source code download
Paxos 入门
Openinstall: wechat applet jump to H5 configuration service domain name tutorial
CVPR22 |CMT:CNN和Transformer的高效结合(开源)
Combinaison Oracle et json
Flip the array gracefully
关于Keil编译程序出现“File has been changed outside the editor,reload?”的解决方法
京东与腾讯续签合作:向腾讯发行A类股 价值最高达2.2亿美元
Whether lending a bank card to others constitutes a crime
What are the advantages and disadvantages of PHP
VScode快捷键(最全)[通俗易懂]