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:
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.