redis
gaojinjake
这个作者很懒,什么都没留下…
展开
-
简单动态字符串-SDS
1、介绍: redis没有使用C语言本身的字符串,而使用简单动态字符串SDS(Simple Dynamic String)这种抽象类型。 2、实现: struct{ int len; int free; char[] buf[]; } 3、为什么要使用SDS?为什么不适用C语言本身的字符串?如何扩容? 常数复杂度获取字符串长...原创 2019-05-18 22:56:56 · 110 阅读 · 0 评论 -
redis数据迁移
//安装依赖 yum install autoconf automake libtool bzip2 //下载redis-migrate-tool包,并解压 git clone https://github.com/vipshop/redis-migrate-tool //编译安装 cd redis-migrate-tool autoreconf -fvi //将co...原创 2019-05-29 19:15:08 · 222 阅读 · 0 评论