redis笔记

database

//redis类型介绍

//获取数据

$lotterylRedis = Redis::getInstance()->redisGet($key);

//有效期时间

$key = "Kaijang:lottery:frequency:simplehtml:" . $lotteryType;

Redis::getInstance()->redisSet($key, json_encode($data), 60*10);

//无时间

$key = "$sys:everyday:task:tate";

$member = "shareInformation" . "_" . $userId;

//小于次数,就增加金豆,并且自增1

Redis::getInstance()->redisZincrby($key, 1, $member);

$number = Redis::getInstance()->redisZscore($key, $member);

 

以上是 redis笔记 的全部内容, 来源链接: utcz.com/z/532454.html

回到顶部