当前位置:网站首页>Redis special data type usage scenarios
Redis special data type usage scenarios
2022-07-26 10:34:00 【Miners learn programming】
BitMaps
Is a memory saving data structure ..0,1 Similar to boolean type
Hyperlogloss
Redis HyperLogLog It's an algorithm for cardinality statistics ,HyperLogLog The advantages of , When the number or volume of input elements is very, very large , The space needed to calculate the cardinality is always fixed Of 、 And it's very small .
stay Redis Inside , Every HyperLogLog Keys only cost 12 KB Memory , So we can calculate the proximity 2^64 A base of different elements Count . This is the same as calculating the cardinality , The more elements consume memory, the more collections there are .
Use a small amount of memory , Store a lot of data ... The statistical results have errors ..
Web browsing statistics , The number of visits and so on do not particularly need accurate data , You can use it .
Streams
Publish subscribe
Redis Publish subscribe (pub/sub) It's a message communication mode : sender (pub) Send a message , subscriber (sub) receive messages .
Redis Clients can subscribe to any number of channels .
边栏推荐
- Introduction to data analysis | kaggle Titanic mission
- Agenda express | list of sub forum agenda on July 27
- [leetcode每日一题2021/5/8]1723. 完成所有工作的最短时间
- Nacos custom service change subscription
- Using native JS to realize custom scroll bar (click to reach, drag to reach)
- centos8(liunx)部署WTM(ASP.NET 5)使用pgsql
- 结构体操作报错:Segmentation fault (core dumped)
- 软件打不开了
- PLC overview
- 【C#语言】具名类型和匿名类型
猜你喜欢
uniapp使用简单方法signalR(仅用于web调试,无法打包app)
[leetcode每日一题2021/8/30]528. 按权重随机选择【中等】
[leetcode每日一题2021/2/14]765. 情侣牵手
Application of.Net open source framework in industrial production
链式方法调用的事务问题剖析
抓包工具fiddler和wireshark对比
[Halcon vision] image filtering
3.1 leetcode daily question 6
【dectectron2】跟着官方demo一起做
数据分析入门 | kaggle泰坦尼克任务(一)—>数据加载和初步观察
随机推荐
13 以对象管理资源
Application of crosstab in SQL Server
js下载文件,FileSaver.js导出txt、excel文件
[leetcode每日一题2021/4/29]403. 青蛙过河
Navicat15连接本地虚拟机的Mysql(Centos7)
移动端H5开发常用技巧总结
Controller返回JSON数据
Perfect / buffer motion framework in sentence parsing JS (for beginners)
12 复制对象时勿忘其每一个成分
PLC概述
【Halcon视觉】图像滤波
MD5加密
json_object_put: Assertion `jso->_ref_count > 0‘ failed.Aborted (core dumped)
Draco developed by Google and Pixar supports USD format to accelerate 3D object transmission & lt; Forward & gt;
链式方法调用的事务问题剖析
string null转空字符串(空字符串是什么意思)
Unit test, what is unit test and why is it so difficult to write a single test
[socket] the three handshakes are completed in listen, and accept only takes out one connection from the queue that completes the connection
The difference between equals and = =
Some cutting-edge research work sharing of SAP ABAP NetWeaver containerization