当前位置:网站首页>Redis特殊数据类型使用场景
Redis特殊数据类型使用场景
2022-07-26 10:29:00 【矿工学编程】
BitMaps
是一个节省内存的数据结构。。0,1 类似布尔类型
Hyperlogloss
Redis HyperLogLog 是用来做基数统计的算法,HyperLogLog 的优点是,在输入元素的数量或者体积非常非常大时,计算基数所需的空间总是固定 的、并且是很小的。
在 Redis 里面,每个 HyperLogLog 键只需要花费 12 KB 内存,就可以计算接近 2^64 个不同元素的基 数。这和计算基数时,元素越多耗费内存就越多的集合形成鲜明对比。
使用少量的内存,存放大量的数据。。。统计的结果有误差。。
网页浏览统计,访问量等等这些不是特别需要准确的数据,可以利用它。
Streams
发布订阅
Redis 发布订阅 (pub/sub) 是一种消息通信模式:发送者 (pub) 发送消息,订阅者 (sub) 接收消息。
Redis 客户端可以订阅任意数量的频道。
边栏推荐
- 【C#语言】具名类型和匿名类型
- What is wrong about the description of function templates (how to solve link format errors)
- [Halcon vision] image filtering
- C language course design Tetris (Part 2)
- Using native JS to realize custom scroll bar (click to reach, drag to reach)
- js,e.pageX、pageY模态框拖动
- js翻页、kkpager.js翻页
- 关于函数模板描述错误的是(链接格式错误怎么解决)
- 面试第二家公司的面试题及答案(二)
- Interview questions and answers for the second company (2)
猜你喜欢
![[Halcon vision] image gray change](/img/62/426713becba851f034e6008f28bdb0.png)
[Halcon vision] image gray change

Basics of data communication - basic knowledge of network

Dynamically determine file types through links

抓包工具fiddler和wireshark对比

The practice of OpenCV -- bank card number recognition

数据分析入门 | kaggle泰坦尼克任务(一)—>数据加载和初步观察

INSTALL_ FAILED_ SHARED_ USER_ Incompatible error resolution

PLC overview

Learning about tensorflow (I)

Employee information management system based on Web
随机推荐
SPARK中 DS V2 push down(下推)的一些说明
Draco developed by Google and Pixar supports USD format to accelerate 3D object transmission & lt; Forward & gt;
Cause: could't make a guess for solution
2022pta平时训练题(1~10题字符串处理问题)
The difference between equals and = =
How to write a million reading article
[qualcomm][network] QTI service analysis
Interview questions and answers of the first company (I)
INSTALL_ FAILED_ SHARED_ USER_ Incompatible error resolution
分布式锁解决方案之Redis实现
Function template parameters (where are the function parameters)
抓包工具fiddler和wireshark对比
QRcode二维码(C语言)遇到的问题
Data communication foundation telnet remote management equipment
【杂谈】Error loading psycopg2 module :No module named psycopg2
Basics of data communication - basic knowledge of network
[Halcon vision] affine transformation
【Halcon视觉】形态学腐蚀
Learning about tensorflow (I)
What is wrong about the description of function templates (how to solve link format errors)