One of Redis learning - the basics

First, the definition

  REmote DIctionary Server (Redis) is a key-value store system configuration data stored in a dictionary; written in ANSI C, BSD protocol compliance, support network, also based on the persistent log memory type, Key-Value database, and provide multilingual API.

Two, Redis data types supported by key

  1. String Type

  2. hash type

  3. List Type

  4. collection type

  The ordered set of type

Three, Redis and persistent memory storage

  Advantage:  

  1. All data is stored in memory, reading and writing to a hard disk much faster, more than 100,000 key / sec;

  2. Provide support persistent, asynchronous data memory can be written to the hard disk, without prejudice to continue to provide services;

  3. You can set the survival time (Time To Live, TTL) for each key, the key will be automatically deleted after the lifetime expires;

  4. Bao can limit the maximum memory control data occupies, after the data space limit is reached can automatically eliminate unwanted key according to certain rules;

  The type of the key may be used to implement a list of queues, and supports blocking reader;

  Disadvantages:

  In memory, the program exits the data in memory will be lost 1. Data storage;

 

Guess you like

Origin www.cnblogs.com/anlia/p/11791594.html