当前位置:网站首页>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 跳跃表 平均值相对最优
边栏推荐
- Oracle和JSON的结合
- Web foundation of network security note 02
- Yoda unified data application -- Exploration and practice of fusion computing in ant risk scenarios
- 全局过滤器(处理时间格式)
- When is testing not unit testing- When is a Test not a Unit-test?
- Combination of Oracle and JSON
- 树莓派4B安装tensorflow2.0[通俗易懂]
- Can I open an account today and buy stocks today? Is it safe to open an account online?
- CVPR22 |CMT:CNN和Transformer的高效结合(开源)
- The idea runs with an error command line is too long Shorten command line for...
猜你喜欢
2022年6月编程语言排行,第一名居然是它?!
商汤进入解禁期:核心管理层自愿禁售 强化公司长期价值信心
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)
Spam filtering challenges
名创拟7月13日上市:最高发行价22.1港元 单季净利下降19%
kubernetes之ingress探索实践
Personal mall two open Xiaoyao B2C mall system source code - Commercial Version / group shopping discount seckill source code
Network security learning notes 01 network security foundation
CVPR 2022 | Virtual Correspondence: Humans as a Cue for Extreme-View Geometry
Several cases of index failure
随机推荐
Exposure:A White-Box Photo Post-Processing Framework阅读札记
8 best practices to protect your IAC security!
Are the consequences of securities account cancellation safe
关于Keil编译程序出现“File has been changed outside the editor,reload?”的解决方法
CPI教程-异步接口创建及使用
escape sequence
TEMPEST HDMI泄漏接收 3
Oracle和JSON的結合
MySQL in and not in() empty list error
Wonderful! MarkBERT
Export and import of incluxdb on WIN platform
Huawei equipment is configured with large network WLAN basic services
applyMiddleware 原理
What are the advantages and disadvantages of PHP
VScode快捷键(最全)[通俗易懂]
Intel Labs announces new progress in integrated photonics research
Applymiddleware principle
When is testing not unit testing- When is a Test not a Unit-test?
Introduction to unittest framework and the first demo
Database experiment report (II)