Home > Backend Development > PHP Tutorial > php memcache, memcache_PHP tutorial

php memcache, memcache_PHP tutorial

WBOY
Release: 2016-07-13 10:20:56
Original
968 people have browsed it

php memcache, memcache

My native environment php5.2.6

memcached.exe 1.2.4

The dll of memcache is available in various versions http://pan.baidu.com/s/1hqj7ab6

If you are unsure, please contact me

php cannot find the memcache module

1. Write a phpinfo view file
2. Then search for php.ini in phpinfo to find the location of php.ini, and confirm that the php.ini you modified is the same as the actual one. The running php.ini is a file.
3. Check whether the ext directory in php.ini is the directory where you put php_memcache.dll
4. Check whether the ext directory of php is in the system environment variable.

How to operate memcache in php

To use memcached in PHP, first download memcached-client.php. After downloading memcached-client.php, you can operate the memcached service through the class "memcached" in this file. In fact, the code call is very simple. The main methods used are add(), get(), replace() and delete(). The method description is as follows: add ($key, $val, $exp = 0) writes to memcached Enter the object, $key is the unique identifier of the object, $val is the written object data, $exp is the expiration time in seconds, and the default is unlimited time; get ($key)www.phpnewer.com/index. php/Tszj/detail/id/404

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/864306.htmlTechArticlephp memcache, memcache My local environment php5.2.6 memcached.exe 1.2.4 memcache dll All versions There is http://pan.baidu.com/s/1hqj7ab6 If you are unsure, you can contact me. php cannot find mem...
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