Home  >  Article  >  Backend Development  >  多条件,怎么做缓存

多条件,怎么做缓存

WBOY
WBOYOriginal
2016-06-06 20:25:061411browse

多条件,怎么做缓存

如题,怎么做缓存,总不能种形式都存一下吧?

回复内容:

多条件,怎么做缓存

如题,怎么做缓存,总不能种形式都存一下吧?

这个要是缓存的话就是:每个都缓存
分页也要缓存吗?

用每个条件的value值 链接在一起当做key 比如 类别 type+other+sort+time

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
Previous article:php如何改写搜索时urlNext article:视频的横竖问题