常用的数据类型

  1. string:set
  2. hash:hset
  3. list:lpop lpush
  4. set:sadd、srem,sinter,sunion,sdiff(关系模型)
  5. zset:ZREVRANGE(倒序)、ZRANGE(正序)
  6. sacn cursor match pattern count 数值

    Redis线程模型

  7. 单线程指网络IO和键值对读写是同一个线程

  8. 所有操作都在内存中
  9. epoll多路复用