Home > Backend Development > PHP Tutorial > memocache for CakePHP32 cakephp official website cakephp download cakephp video tutorial

memocache for CakePHP32 cakephp official website cakephp download cakephp video tutorial

WBOY
Release: 2016-07-29 08:48:40
Original
1166 people have browsed it

In fact, cake3’s memocache is very simple, and the preliminary work only requires 3 steps

1. Install the cache client locally

2. Install the PHP extension locally

Download the extension, put it in the PHP extension folder, and add the extension in php.ini Item, start the environment

3. Configure/config/app.php

'Cache' => timeout=7200&prefix=xd_session_',
                                                                             'config' => 'session'
]
],


(*If you are not testing locally, you can skip steps 1 and 2)



Program code:

$this->request->session()->write("test ",'test');

The above introduces memocache for CakePHP32, including cakephp and cache aspects. I hope it will be helpful to friends who are interested in PHP tutorials.

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