[Redis] First understanding

Redis is a nosql database. Data is stored in memory. At the same time, redis can periodically synchronize memory data to disk, that is, data can be persisted.

Redis is a key-value database that provides storage of data structures such as list, set, zset, and hash .

 

Compared with memcached, redis is unique:

1: redis can be used for storage , and memccached is used for cache . This feature is mainly because of its "persistence" function.

2: The stored data has "structure". For memcached, there is only one type of stored data - "string", while redis can store strings, linked lists, hash structures, sets, and ordered sets .

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325720178&siteId=291194637