发布网友
共1个回答
热心网友
伪代码如下,思路也清晰。
读写部分
if(redis){
读取redis数据
}else{
数据库读取,存redis+设置超时时间
}
更新部分
if(数据库update){
更新redis+设置超时时间
}