repeat
First, the concept :
redis is nosql series of a high-performance non-relational databases
Redis support of key data types: string type String
Ha Xu type hash
List type list
Collection types set
Indexed collections sortedset
Some frequent queries some data not often change
Cache thinking: 1 , to obtain data from the cache ---- ( 1 ) data directly returned. ( 2 ) no data from the database query, the data placed in the cache, the data returned
Mainstream nosql Products:
(1) key-value pair ( Key-the Value ) stored in the database
Product: Tokyo , Cabinet / Tyrant , Redis ,,
High access load content caching, mainly used for processing large amounts of data: Typical application
Data model: a series of key-value pairs
Advantage: Quick Query
Weaknesses: The lack of structured data storage
(2) storing a database column
Product: Cassandea , Hbase , Riak
Typical applications: distributed file system
Data model: a column cluster storage, data will be stored together in the same column
Advantages: Fast search speed, scalability strong, easier to expand distributed
Disadvantages: relatively limited functions
(3) document database
Product: MongDB , CouchDB
Typical applications: Web application (and key-value Similarly, value is structured)
Data model: a series of key-value pairs
Advantages: data structure is not strictly required
Disadvantages: query performance is not high, and the lack of a unified query syntax
(4) Graphics ( Graph ) database
Product: Noe4j , Infogrid , Infinite Graph
Typical applications: social networking
Data Model: Structure FIG.
Advantages: FIG structural correlation algorithm
Disadvantages: need to do in order to calculate the outcome of the entire map, it is not easy to make a distributed clustering scheme
Second, download and install
Third, the operation command
1 , a data structure
Four, endurance of operation
Five, the Java operating redis