Home > PHP Framework > ThinkPHP > body text

Analyze the usage issues of Thinkphp5 composite cache

藏色散人
Release: 2021-09-26 15:40:17
forward
1910 people have browsed it

The followingthinkphp frameworktutorial column will introduce to you the use of tp5 composite cache. I hope it will be helpful to friends in need!

Configuration as shown:
Analyze the usage issues of Thinkphp5 composite cache

Business code:

Analyze the usage issues of Thinkphp5 composite cache

The cache has never been able to obtain data, and it has always been queried from the database.

I changed
Cache::store('redis')->set('table_members_'.$tableId,$list); to
Cache::set('table_members_'. $tableId,$list); the execution will be normal.

Explains that the default cache is executable.

I modified the configuration as follows:

Analyze the usage issues of Thinkphp5 composite cache

The business is also normal, but it is inconsistent with the instructions in the official website document

Analyze the usage issues of Thinkphp5 composite cache

Recommended: "The latest 10 thinkphp video tutorials"

The above is the detailed content of Analyze the usage issues of Thinkphp5 composite cache. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:segmentfault.com
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