1 RedisIntroduction1.1 Redisdefinition
Redis is an open source , C- written kv storage System,NoSQL database, also known as: non-relational database
1) open-source
2) C language Writing
3) Kv Storage System
4) Nosql, non-relational database
the difference between a Nosql(non-relational) database and a mysql-orcale relational database
Nosql: Storage mode (key/value)
Relational database: stored by (table structure provides primary foreign key association)
Application Scenarios:
Internet, e-commerce
Common NoSQL:
data types supported by MongoDB (document database):Bson
data types supported by Redis (Memory database):string,set,list,hash,sorted-set
HBase(a massive distributed NoSQL database --hadoop ecosystem)
1.2 Redisfeatures
1) Cache:Redis will store the data on the hard disk in memory to provide fast read and write.
Common caches:
Oscache
Ehcache
Memcache
Redis
Cached schema diagram:
Figure 1.(memcache)
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6E/BE/wKiom1WEHsyCsMabAAEICYDAgCU344.jpg "title=" XY0 ' 0) x0jj2$ @HMADXM08ME. png "alt=" wkiom1wehsycsmabaaeicydagcu344.jpg "/>
Figure 2.(redis)
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6E/BE/wKiom1WEHvSA3lm3AAFAhL_u_Eo456.jpg "title=" 1.png " alt= "Wkiom1wehvsa3lm3aafahl_u_eo456.jpg"/>
2) rich data type (kv)
data type: The data Type here refers to the type of value ,the type of key is string or byte
3) persistent:Redis also writes data to the hard disk to make a backup (persistent is the reason that Redis is called a database)
About Redis 2.8