
redis
文章平均质量分 96
菜鸟小窝
这个作者很懒,什么都没留下…
展开
-
centos7下安装redis6.0.6
一、下载 下载网站: https://redis.io/download 在网站中右键点击 Download 6.0.6 ,复制链接地址。 使用wegt下载 wget http://download.redis.io/releases/redis-6.0.6.tar.gz 二、安装 将redis-6.0.6.tar.gz解压后,移动到 /usr/local/redis/ 目录 1、执行编译命令 在redis目录下执行以下命令 make MALLOC=libc 安装成功的反馈信息: [root@loc原创 2020-08-06 23:01:22 · 5411 阅读 · 1 评论 -
redis 数据类型
127.0.0.1:6379> set k1 aaa OK 127.0.0.1:6379> get k1 "aaa" 127.0.0.1:6379> keys * 1) "k1" 127.0.0.1:6379> exit [root@localhost src]# nc localhost 6379 keys * *1 $2 k1 ^C [root@localhost src]# exec 9<> /dev/tcp/localhost/6379 [root@localho原创 2020-05-10 12:38:17 · 249 阅读 · 0 评论 -
redis skiplist(跳跃表)
打开redis/src目录下的 vi t_zset.c 按下 /rand 搜索到下面的方法 /* Returns a random level for the new skiplist node we are going to create. * The return value of this function is between 1 and ZSKIPLIST_MAXLEVEL * (both inclusive), with a powerlaw-alike distribution where原创 2020-05-10 12:35:51 · 207 阅读 · 0 评论