Redis knowledge sorting (2) redis start of redis

(Feature of redis - unique key-value pair model)

Many databases can only handle one data structure:

SQL Database - Table

Memcached - database of key-value pairs, both keys and values ​​are strings

Document databases (CouchDB, MongoDB) - documents consisting of JSON/BJSON

Once the data structure provided by the database is not suitable for doing a certain thing, the program will be very troublesome and unnatural to write.

Redis is also a key-value pair database, but unlike Memcached, the value of Redis can be not only a string, but also any of the other five data structures (string, list, hash, set, ordered set) . By choosing different data structures, users can use Redis to solve a variety of problems.

                              


(redis has rich additional functions)



   



Guess you like

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