当前位置:网站首页>Go deep into the underlying C source code and explain the core design principles of redis
Go deep into the underlying C source code and explain the core design principles of redis
2022-07-05 18:58:00 【bingtanghulu_ six】
Catalog
1.redis Basic characteristics

2.redis Application scenarios


3. data structure
3.1 string
redis All of them are k-v structure ,key At the bottom, it's all string structure ,value Yes string,hash,set,sorted set,list etc. .
among string The data structure in is as follows ,3.2 Previously, there were only three parameters len( Character length ),free( Free space ),buf[]( Storage variable )

redis in string Three characteristics of strings
1. Binary secure data structures
c Language in string str='xxx\0'; The structure of string is represented by a \0 For the end .
2. Provides a memory pre allocation mechanism , Avoid frequent memory allocation
Provide capacity expansion mechanism , Algorithm :(len+addlen)*2
3. compatible C Language function library .





bitmap Bottom use string,string The maximum length that a string can represent 512M.
The following figure shows the statistics of weekly live users
边栏推荐
- 深入底层C源码讲透Redis核心设计原理
- 自动化测试的好处
- 输油管的布置数学建模matlab,输油管布置的数学模型
- 什么是文本挖掘 ?「建议收藏」
- The road of enterprise digital transformation starts from here
- C final review
- 2022 latest Android interview written examination, an Android programmer's interview experience
- C language makes it easy to add, delete, modify and check the linked list "suggested collection"
- SAP feature description
- Linear table - abstract data type
猜你喜欢

2022 latest Android interview written examination, an Android programmer's interview experience

小程序 修改样式 ( placeholder、checkbox的样式)

彻底理解为什么网络 I/O 会被阻塞?

websocket 工具的使用

Find in MySQL_ in_ Detailed explanation of set() function usage

Technology sharing | interface testing value and system

【Autosar 十四 启动流程详解】

Why can't Bi software do correlation analysis? Take you to analyze

Analysis of postman core functions - parameterization and test report

How to write good code defensive programming
随机推荐
XML基础知识概念
[detailed explanation of AUTOSAR 14 startup process]
Interprocess communication (IPC): shared memory
2022最新大厂Android面试真题解析,Android开发必会技术
Tupu software digital twin smart wind power system
R language Visual scatter plot graph, add labels to some data points in the graph, and always display all labels, even if they have too much overlap. Ggrep package helps
如何快速进阶自动化测试?听听这3位BAT大厂测试工程师的切身感想....
Precautions for RTD temperature measurement of max31865 module
Pytorch yolov5 training custom data
7-2 keep the linked list in order
华律网牵手观测云,上线系统全链路可观测平台
案例分享|金融业数据运营运维一体化建设
C language makes it easy to add, delete, modify and check the linked list "suggested collection"
视频融合云平台EasyCVR增加多级分组,可灵活管理接入设备
什么是文本挖掘 ?「建议收藏」
MYSQL中 find_in_set() 函数用法详解
R语言使用lubridate包处理日期和时间数据实战
企业级数据安全,天翼云是这样理解的
SAP feature description
How to quickly advance automated testing? Listen to the personal feelings of the three bat test engineers