https://www.cnblogs.com/lisqiong/p/5580927.html
数据结构:
set post:postid:3:time timestamp
set post:postid:3:userid 5
set post:postid:3:content 测试发布哈哈哈哈
incr global:postid
set post:postid:$postidcho "用户名密码不能够为空!";
关注微博
following:3
被关注(粉丝)
followed:3
把发布的微博推给自己的粉丝
recivepost:10 postid
微博的发布代码:
微博的关注代码:
注:为了便于理解,可以先看关注的代码,再看推送给粉丝的代码