当前位置:网站首页>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 .
边栏推荐
- Watch out for the stolen face! So many risks of face recognition used every day?
- Development of trading system (x) -- fix agreement
- 2021.6.14 notes
- Simple integration of client go gin 11 delete
- Shutter fittedbox component
- WMS仓储管理系统的使用价值,你知道多少
- Win10 environment phpstudy2016 startup failure record
- MySQL插入过程报错1062,但是我没有该字段。
- @Requestbody solution get parameter is null
- 小心被偷脸!天天用的人脸识别风险原来这么多?
猜你喜欢
Finereport (sail soft) handling the problem that the histogram data label is blocked
numpy np tips:使用opencv对数组插值放缩到固定形状 cv2.resize(res, dsize=(64, 64), interpolation=cv2.INTER_CUBIC)
Nodejs 通过Heidisql连接mysql出现ER_BAD_DB_ERROR: Unknown database 'my_db_books'
Basic use of OBS browser+ browser
English Grammar - pronunciation rules
i. Max development board learning record
Watch out for the stolen face! So many risks of face recognition used every day?
Siddhartha: the book of life can be regurgitated frequently
EasyRecovery15非常好用的电脑数据恢复软件
代表多样性的彩色 NFT 系列上线 The Sandbox 市场平台
随机推荐
UCLA | 用于黑盒优化的生成式预训练
Laravel document sorting 6. Response
如何绘制产业招商地图
NFT insider 63: the sandbox reached a cooperation with Time magazine, and YGG established Spain's subdao
Laravel document sorting 3. CSRF protection
Retrofit source code analysis
CMD operation MySQL in Windows
Lecture record: history and development of strapdown inertial navigation solution
IntStream API介绍
numpy np tips:使用opencv对数组插值放缩到固定形状 cv2.resize(res, dsize=(64, 64), interpolation=cv2.INTER_CUBIC)
sql_ mode=only_ full_ group_ By's pit
Finereport displays and hides column data according to conditions
Flutter Builder & FutureBuilder组件
515. 在每个树行中找最大值 / 剑指 Offer II 095. 最长公共子序列
Mysql的order by
关于TCP连接三次握手的详细总结
PostgreSQL数据库WAL——RM_HEAP_ID日志记录动作
NFT Insider #63:The Sandbox与时代杂志达成合作,YGG成立西班牙subDAO
什么是持久化?redis 持久化中的RDB和AOF是什么?
Error 1062 is reported during MySQL insertion, but I do not have this field.