“Redis storage limit”与“Redis persistence”:页面之间的差异
(页面间差异)
(建立內容為「Redis将所有key-value放在内存中,因此总大小不能超过内存的容量。 Redis includes the redis-benchmark utility that simulates running commands…」的新頁面) |
(建立內容為「Redis提供如下的持久化机制: ;RDB (Redis Database): The RDB persistence performs point-in-time snapshots of your dataset at specified intervals. ;AOF (A…」的新頁面) |
||
第1行: | 第1行: | ||
Redis提供如下的持久化机制: | |||
;RDB (Redis Database): The RDB persistence performs point-in-time snapshots of your dataset at specified intervals. | |||
;AOF (Append Only File): The AOF persistence logs every write operation received by the server, that will be played again at server startup, reconstructing the original dataset. Commands are logged using the same format as the Redis protocol itself, in an append-only fashion. Redis is able to rewrite the log in the background when it gets too big. | |||
;No persistence: If you wish, you can disable persistence completely, if you want your data to just exist as long as the server is running. | |||
;RDB + AOF: It is possible to combine both AOF and RDB in the same instance. Notice that, in this case, when Redis restarts the AOF file will be used to reconstruct the original dataset since it is guaranteed to be the most complete. | |||
[[Category:Database]] | [[Category:Database]] | ||
[[Category:Redis]] | [[Category:Redis]] |
2021年6月28日 (一) 13:23的版本
Redis提供如下的持久化机制:
- RDB (Redis Database)
- The RDB persistence performs point-in-time snapshots of your dataset at specified intervals.
- AOF (Append Only File)
- The AOF persistence logs every write operation received by the server, that will be played again at server startup, reconstructing the original dataset. Commands are logged using the same format as the Redis protocol itself, in an append-only fashion. Redis is able to rewrite the log in the background when it gets too big.
- No persistence
- If you wish, you can disable persistence completely, if you want your data to just exist as long as the server is running.
- RDB + AOF
- It is possible to combine both AOF and RDB in the same instance. Notice that, in this case, when Redis restarts the AOF file will be used to reconstruct the original dataset since it is guaranteed to be the most complete.