redis2

redis2

redis为什么这么快 1、纯内存操作,避免io操作 2、单线程架构(数据读写)避免了线程,进程间切换 3、使用了io多路复用网络模型 -io模型 -同步io -异步io -io多路复用 -poll -epoll -select 读写都是单线程,不需要锁,不会出现数据错乱 字符串类型 1、基本使用g ......
redis2 redis

redis2

1 哈希类型 ###! hget,hset,hdel hget key field # 获取hash key对应的field的value 时间复杂度为 o(1) hset key field value # 设置hash key对应的field的value值 时间复杂度为o(1) hdel key ......
redis2 redis
共2篇  :1/1页 首页上一页1下一页尾页