Four, NOSQL of Redis combat persistent caching service basis Part III

1.NOSQL understanding

      NOSQL is not just SQL, sql say is the supplement, but not replace SQL.

nosql库:memcached、memcachedb、redis

2.redis Profile

        Redis is a persistent key-value pairs based on key-value database storage systems, redis and memcached caching services like, but redis support richer types of data storage, including string (string), list (list), set (the set ), zset (ordered set) and so on.

         Redis persistence cache will be updated periodically writes data to disk as well as the modification of the operating records appended to the file recorded more advantages than memcached is, redis also supports the maser-slave (master and slave) synchronization, this is much like mysql.

3.redis advantage

  •    High performance: supports 100K per second read and write; just a few hundred general database
  •    Rich data types: Redis supports String, lists, Hashes, etc.
  •    Atomic: All operations are atomic
  •   Feature-rich: Redis also supports publish / subscribe notification, key expired
  •   redis support heterogeneous master-slave replication
  •   You can store persistent data

4.redis data types

     Commonly used five kinds: string, hash, list, set, sorted set

 

 

 

Guess you like

Origin www.cnblogs.com/dangjingwei/p/11844644.html