Home  >  Article  >  Backend Development  >  缓存到底多长时间合适?该怎么解决

缓存到底多长时间合适?该怎么解决

WBOY
WBOYOriginal
2016-06-13 13:40:381838browse

缓存到底多长时间合适?
比如memcache,缓存期间数据不发生变化的,比如30分钟内,这反而不好,但是缓存时间设小了意义又不大,比如30秒,缓存这东西,到底设多长时间才好?

------解决方案--------------------
缓存这东西,简单说就是,在容量允许的情况下越多越好,在实际数据未发生变化的时间内越长越好。

不知道这样的说法是否回答了你的问题,hehe


――――――――――――――――――――――――――――――――
基于CSDN论坛提供的插件扩展功能,自己做了个签名档工具,分享给大家,欢迎技术交流 :)
------解决方案--------------------
看需要。一些1天不变1次的,可以缓冲1天。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn