当前位置:网站首页>What is persistence? What are RDB and AOF in redis persistence?
What is persistence? What are RDB and AOF in redis persistence?
2022-06-25 04:27:00 【Life is sweet and good luck is good】
What is persistence
Persistence (Persistence), That's data ( Like objects in memory ) Save to a permanent storage device ( Disk ). The main application of persistence is to store objects in memory in database , Or stored in a disk file 、XML Data files and so on .
Persistence is the mechanism that transforms program data between persistent and transient states .
JDBC It's a persistence mechanism . file IO It's also a persistence mechanism .
We understand it this way :
Staying constant for a certain period of time is persistence , Persistence is about time .
The data in the database is the persistent data , As long as you don't delete or modify .
For example IE Once in browser Session In the session Session Object variables are also invariant , yes Session Persistent in container .
There are many ways to persist objects , Depending on the period, there are ,page,Session,Application.
The object serialization mechanism needs to save the state of the object to a file , Then we can reconstruct the object by reading in the object state , Restore program state ,
The process of object serialization is one of the methods of object persistence , Save objects to a file .
RDB What is it?
RDB Persistence is the process of saving a snapshot of the current process data to the hard disk , Trigger RDB The persistence process is divided into manual and automatic triggers .
1. Trigger mechanism
Manual trigger corresponds to save and bgsave command :DB saved on disk
bgsave command :Background saving started by pid 3152
DB saved on disk
RDB: 0MB of memory userd by copy-on-write
Background saving terminated with success
AOF What is it?
AOF(append only file) Persistence : Each write is logged as a separate log , Reexecute on reboot AOF The command in the file achieves the purpose of recovering data .AOF Its main function is to solve the real-time problem of data persistence , So far Redis The mainstream way of persistence .
边栏推荐
- "Renaissance" in the digital age? The bottom digital collection makes people happy and sad
- Is opencv open source?
- i. Max development board learning record
- WMS仓储管理系统的使用价值,你知道多少
- 讲座记录《捷联惯导解算的历史及发展》
- 5 key indicators of SEO: ranking + traffic + session + length of stay + bounce rate
- 如何绘制产业招商地图
- 代錶多樣性的彩色 NFT 系列上線 The Sandbox 市場平臺
- Nodejs 通过Heidisql连接mysql出现ER_BAD_DB_ERROR: Unknown database 'my_db_books'
- Laravel document sorting 9. Blade template
猜你喜欢

Can Navicat directly operate the Android database SQLite

How much do you know about the use value of WMS warehouse management system

"How to carry out industrial positioning" in local / Park industrial planning

"Grammar sugar" -- my new programming knowledge

NFT insider 63: the sandbox reached a cooperation with Time magazine, and YGG established Spain's subdao

PHP extracts and analyzes table contents, and collects bidding information

Vigilance against over range collection of privacy - ten mobile app violations

Cesium loading display thermal diagram

The 5th series of NFT works of missing parts was launched on the sandbox market platform

Nodejs connects to MySQL through heidisql, and ER appears_ BAD_ DB_ ERROR: Unknown database 'my_ db_ books'
随机推荐
How much do you know about the use value of WMS warehouse management system
Acmstreamopen return value problem
5 key indicators of SEO: ranking + traffic + session + length of stay + bounce rate
Simple integration of client go gin 11 delete
单元测试覆盖率
Openmmlab environment configuration
LeetCode 劍指Offer II 091 粉刷房子[動態規劃] HERODING的LeetCode之路
什么是存储引擎以及MySQL常见的三种数据库存储引擎
如何绘制产业招商地图
Laravel document sorting 10. Request life cycle
NFT Insider #63:The Sandbox与时代杂志达成合作,YGG成立西班牙subDAO
论文笔记: 多标签学习 ESMC (没看懂, 还没写出来, 暂时放这里占个位置)
Finereport displays and hides column data according to conditions
WMS仓储管理系统的使用价值,你知道多少
【LeetCode】148. 排序链表
Nodejs connects to MySQL through heidisql, and ER appears_ BAD_ DB_ ERROR: Unknown database 'my_ db_ books'
English Grammar - pronunciation rules
Comparison of towe/ JIRA / tapd / Zen collaboration platforms
Vigilance against over range collection of privacy - ten mobile app violations
Coinlist queuing tutorial to improve the winning rate