当前位置:网站首页>redis中value/SortedSet
redis中value/SortedSet
2022-07-01 11:19:00 【每日一悟】
默认物理内存左小右大,不随命令发生变化
zadd k1 8 apple 2 banana 3 orange
zrange k1 0 -1 banana orange apple
zrange k1 0 -1 withscores banana 2 orange 3 apple 8
zrangebyscore k1 3 8 orange applezrange k1 0 1 banana orange
zrevrange k1 0 1 apple orange
zscore k1 apple 8 通过元素取出分值
zrank k1 apple 2 通过元素取出排名
zrange k1 0 -1 banana orange apple
zrange k1 0 -1 withscores banana 2 orange 3 apple 8
zincrby k1 2.5 banana 4.5
zrange k1 0 -1 withscores orange 3 banana 4.5 apple 8
zadd k1 80 s 60 ss 70 sss
zadd k2 60 s 100 ss 40 ssss
zunionstore unkey 2 k1 k2
zrange unkey 0 -1 withscores ssss 40 sss 70 s140 ss160
zunionstore unkey1 2 k1 k2 weights1 0.5
zrange unkey 0 -1 withscores ssss 20 sss 70 s110 s110
zunionstore unkey1 2 k1 k2 aggregate max
zrange unkey1 0 -1 withscores ssss 40 sss 70 s 80 ss 100
排序是怎么实现的增删改查的速度?skip list 跳跃表 平均值相对最优
边栏推荐
- LeetCode. One question of the day: offer II 091 Paint the house (DP problem)
- 2022年6月编程语言排行,第一名居然是它?!
- Give up high paying jobs in Shenzhen and go back home
- The first anniversary of the data security law, which four major changes are coming?
- Test case writing specification in unittest framework and how to run test cases
- Flip the array gracefully
- 银行卡借给别人是否构成犯罪
- Face detection and recognition system based on mtcnn+facenet
- Leetcode 181 Employees exceeding the manager's income (June 29, 2022)
- 华泰证券网上开户安全吗?
猜你喜欢

Applymiddleware principle

Unittest框架中跳过要执行的测试用例

商汤进入解禁期:核心管理层自愿禁售 强化公司长期价值信心

Oracle和JSON的結合

Tempest HDMI leak reception 4

Intel Labs annonce de nouveaux progrès en photonique intégrée

Node version manager NVM installation and switching

TEMPEST HDMI泄漏接收 5

CVPR 2022 | 基于密度与深度分解的自增强非成对图像去雾

Brief analysis of edgedb architecture
随机推荐
商汤进入解禁期:核心管理层自愿禁售 强化公司长期价值信心
Value 1000 graduation project campus information publishing platform website source code
Cann operator: using iterators to efficiently realize tensor data cutting and blocking processing
【AI资讯月刊】350+资源大盘点!6月不容错过的资料和动态,都都都在这里啦!<附下载>
Combination of Oracle and JSON
英特尔实验室公布集成光子学研究新进展
(POJ - 1456) supermarket
The project bar on the left side of CodeBlocks disappears, workspace automatically saves the project, default workspace, open the last workspace, workspace (Graphic tutorial, solved)
谷歌新论文-Minerva:用语言模型解决定量推理问题
Huawei equipment is configured with large network WLAN basic services
Can I open an account today and buy stocks today? Is it safe to open an account online?
YoDA统一数据应用——融合计算在蚂蚁风险场景下的探索与实践
Mingchuang plans to be listed on July 13: the highest issue price is HK $22.1, and the net profit in a single quarter decreases by 19%
Network security learning notes 01 network security foundation
CPI教程-异步接口创建及使用
Oneconnect plans to be listed in Hong Kong on July 4: a loss of nearly 3 billion in two years, with a market capitalization evaporation of more than 90%
Global filter (processing time format)
[buuctf.reverse] 144_ [xman2018 qualifying]easyvm
Development overview of fund internationalization
TMUX usage