当前位置:网站首页>Value/set in redis
Value/set in redis
2022-07-01 11:22:00 【Daily enlightenment】
features : disorder 、 duplicate removal
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 intersection
sinterstore dest k2 k3 intersection
smembers dest 4 5
sunion k2 k3 1 2 3 4 5 6 7 8 Combine
sdiff k2 k3 1 2 3 Difference set k2 - k2 k3 Union
sdiff k3 k2 6 7 8 Difference set k3 - k2 k3 Union
sadd k1 s ss sss ssss sssss ssssss sssssss
srandmember k1 5 -5 10 -10
srandmember key count
count Positive numbers : Take out a de duplication result set ( Cannot exceed existing set )
count negative : Take out a result set with duplicates , Be sure to meet the quantity you want
If 0: No return
spop key: Take out a
边栏推荐
- Whether lending a bank card to others constitutes a crime
- redis常识
- IPlImage的width和widthStep
- node版本管理器nvm安装及切换
- Tempest HDMI leak receive 3
- applyMiddleware 原理
- TMUX usage
- (POJ - 1456) supermarket
- Shangtang entered the lifting period: the core management voluntarily banned and strengthened the company's long-term value confidence
- Vscode shortcut key (the most complete) [easy to understand]
猜你喜欢
Oracle和JSON的結合
華為設備配置大型網絡WLAN基本業務
编译调试Net6源码
Compile and debug net6 source code
京东与腾讯续签合作:向腾讯发行A类股 价值最高达2.2亿美元
田溯宁投的天润云上市:市值22亿港元 年利润下降75%
2022/6/30学习总结
China's cellular Internet of things users have reached 1.59 billion, and are expected to surpass mobile phone users within this year
Node version manager NVM installation and switching
Combination of Oracle and JSON
随机推荐
Tempest HDMI leak reception 4
CVPR 2022 | self enhanced unpaired image defogging based on density and depth decomposition
Cvpr22 | CMT: efficient combination of CNN and transformer (open source)
2022/6/30学习总结
Getting started with Paxos
redis常识
sshd_config 中 PermitRootLogin 的探讨
Get key code
2022/6/29学习总结
activity工作流引擎
epoll介绍
名创拟7月13日上市:最高发行价22.1港元 单季净利下降19%
“目标检测”+“视觉理解”实现对输入图像的理解及翻译(附源代码)
In June 2022, it was the first programming language?!
redis配置环境变量
MIT's latest paper, "the need for interpretable features: motivation and classification": building interpretability in the constituent elements of machine learning models
Huawei Equipment configure les services de base du réseau WLAN à grande échelle
TEMPEST HDMI泄漏接收 4
2022/6/28学习总结
Redis启动与库进入