redis过时策略实现机制

参考:http://www.javashuo.com/article/p-cstaegai-ma.htmlhtml 1、redis设置过时时间     将某个key设置过时时间:expire key time(以秒为单位)redis     原子方式,同时设置值和过时时间:setex(String key, int seconds, String value)数据库     注:若是没有设置时间,
相关文章
相关标签/搜索