新闻列表Memcache使用有关问题。

WBOY
Release: 2016-06-13 13:13:53
Original
712 people have browsed it

新闻列表Memcache使用问题。。
新闻里有分类,分类里有分页,
现在我做的是将分类和分页加起来作为键值然后缓存起来显示。
现在问题是,如果我修改个问题,缓存就得全部清空一次,
大家在做这类东西的时候是什么思路?

------解决方案--------------------
我修改个问题 缓存就得全部清空一次是什么意思? 代码?
------解决方案--------------------
你可以把内容分分块缓存。或者通过key编辑指定的缓存内容不就行了
------解决方案--------------------
数据库才是永恒的,如果不打算做写缓存只做读缓存,那么每次修改都应该先改数据库,再更新一下缓存就行了,这属于后台操作吧,根本没关系啊。

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!