浅谈php的缓存机制之redis

适合刚学习redis的读读,直接上代码吧,全是基础,全有注释php <?php $redis = new redis(); $redis->connect('127.0.0.1', 6379); //设置twjteststring $redis->setex('twjteststring','300','test string title content'); $twjteststring =
相关文章
相关标签/搜索