1.9-redis Persistence

Source: Internet
Author: User

Redis Persistence


Redis provides two ways to persist, namely, RDB (redis DataBase) and aof (Append only File).


An RDB, in short, generates snapshots of redis-stored data at different points in time and stores it on media such as disks .


AOF, it is to change an angle to achieve persistence, that is, all Redis executed write instruction down, at the next Redis reboot, as long as these write instructions from the front to the back of the execution again, you can achieve data recovery .


In fact, the RDB and aof two ways can also be used simultaneously, in this case, if the Redis restart, it will take precedence in the aof way for data recovery, because the AOF mode of data recovery is more complete.


If you don't have the need for data persistence, you can also turn off the RDB and aof mode, so Redis will become a pure memory database, just like memcache.


1.9-redis Persistence

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.