当前位置:网站首页>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
边栏推荐
- 怎么自动安装pythn三方库
- 2022年5月腾讯云开发者社区视频月度榜单公布
- Word查找红色文字 Word查找颜色字体 Word查找突出格式文本
- MySQL数据库索引教程(超详细)
- 达梦数据库udf实现
- Is the performance evaluation of suppliers in the fastener industry cumbersome? Choose the right tool to easily counter attack!
- How to choose the most formal and safe external futures platform?
- 深入底层C源码讲透Redis核心设计原理
- MySQL优化六个点的总结
- AI open2022 | overview of recommendation systems based on heterogeneous information networks: concepts, methods, applications and resources
猜你喜欢
【Autosar 十四 启动流程详解】
The era of Web3.0 is coming. See how Tianyi cloud storage resources revitalize the system to enable new infrastructure (Part 2)
跨境支付平台 XTransfer 的低代码实践:如何与其他中台融合是核心
A cloud opens a new future of smart transportation
The road of enterprise digital transformation starts from here
2022 latest intermediate and advanced Android interview questions, [principle + practice + Video + source code]
如何写出好代码 - 防御式编程
SAP 特征 特性 说明
Applet modification style (placeholder, checkbox style)
爬虫01-爬虫基本原理讲解
随机推荐
5. Data access - entityframework integration
爬虫01-爬虫基本原理讲解
Lombok @builder annotation
MySQL数据库索引教程(超详细)
基于can总线的A2L文件解析(3)
中文版Postman?功能真心强大!
ROS安装报错 sudo: rosdep:找不到命令
What is text mining? "Suggested collection"
泰山OFFICE技术讲座:由行的布局高度,谈绘制高度的高度溢出、高度缩水(全网首发)
国内低代码开发平台靠谱的都有哪些?
案例分享|金融业数据运营运维一体化建设
技术分享 | 接口测试价值与体系
Tianyi cloud understands enterprise level data security in this way
2022 latest Android interview written examination, an Android programmer's interview experience
深入底层C源码讲透Redis核心设计原理
Video fusion cloud platform easycvr adds multi-level grouping, which can flexibly manage access devices
U-Net: Convolutional Networks for Biomedical Images Segmentation
Use QT to traverse JSON documents and search sub objects
vs2017 qt的各种坑
android中常见的面试题,2022金九银十Android大厂面试题来袭