A, String type:
①string redis is the most basic type, you can be understood as exactly the same type with Memcached, a key corresponding to a value.
②string type is binary safe. Redis meaning of string can contain any data. Such as jpg image or serialized object.
③string Redis type is the most basic data type, a redis string value can be up to 512M.
Two, hash (hash, similar to java in the Map)
①Redis hash is a collection of key-value pairs.
②Redis hash field is a string type and the value of the mapping table, hash is particularly suited for storing objects.
Three, list (list)
①Redis list is a simple list of strings, sort insertion order. You can add a head guide elements of the list (on the left) or tails (to the right).
② underlying it is actually a linked list.
Four, set (collection)
①Redis the Set of type string is an unordered collection.
② It is achieved through HashTable implementation.
Supplementary: java in the set member is not allowed to repeat and unordered collection.
Five, zset (sorted set: an ordered collection)
①Redis zset and is set as a collection of string type elements, and does not allow duplicate members.
② is a different type of double scores will be associated with each element.
③redis it is to small to large order of collection of member passing score. zset member is unique, but the score (score) it can be repeated.