wholesale beads and jewelry supplies canada There are several types of Redis's persistence strategy

wholesale beads and jewelry supplies canada

2 thoughts on “wholesale beads and jewelry supplies canada There are several types of Redis's persistence strategy”

  1. gold jewelry settings wholesale Redis is a high-level Key-Value database. It is similar to MEMCACHED, but the data can be persistent and the types of data support are rich. There are string, linked list, collection and orderly collection. Support the computing, intersection and supplement (), etc. of the set computing, and also support a variety of sorting functions. So Redis can also be regarded as a data structure server.

    All data of theREDIS is stored in memory, and then saved on the disk through the asynchronous manner (this is called "semi -persistent mode"); Enter an Append only File (AOF) (this is called "full -lasting mode").

    The first method: default Redis will persist in data to disk in the form of snapshot (a binary file, MP.RDB, this file name can be specified), the format in the configuration file, the format in the configuration file Yes: Save N M means that within N seconds, a redis can be quickly grabbed to the disk within at least m modification. Of course, we can also manually execute Save or BGSAVE (asynchronous) for snapshots.

    The work principle briefly introduces: when Redis needs to be durable, redis will fork a sub -process; the sub -process will write the data into a temporary RDB file on the disk; After that, the original RDB is replaced. This advantage is that you can Copy-On-Write

    The lasting method is Append-only: The method will be recently died when the Redis is abnormal, the recent data will be Lost (how many lost data depends on your SAVE strategy), so this is its biggest disadvantage. When the business volume is large, there are many lost data. The APPEND-only method can achieve all the data, but the performance of Redis is worse. AOF can be persistent throughout the process. Just turn on the configuration file (the default is NO). After the AOF is turned on, each Redis executes a modified data command, and AOF files will be read for "rearracking" to restore the last moment before the Redis closure.

  2. wholesale jewelry sup Redis is a high-end Key-Value database, a linked list. It is similar to MEMCACHED, but the data can be persistent, supports a variety of sorting functions, and the types of data support are rich. Support to calculate the collection on the server side. There are string. Therefore, redis can also be regarded as a data structure server, which integrates and orderly collection, intersection and supplement (), etc.

Leave a Comment