Phpmemcache, memcache_PHP tutorial

Source: Internet
Author: User
Phpmemcache and memcache. Phpmemcache, memcachemy local environment php5.2.6memcached.exe 1.2.4memcache dll versions all have pan. baidu. coms1hqj7ab6. if you cannot find mem php memcache, memcache

My local environment php5.2.6

Memcached.exe 1.2.4

Memcache dll each version has a http://pan.baidu.com/s/1hqj7ab6

If you are not sure, contact me.


The memcache module cannot be found in php.

1. write a phpinfo file to view the file
2. search for php. ini in phpinfo and find the location of php. ini. make sure that the modified php. ini and the actually running php. ini are a file.
3. check whether the ext directory in php. ini contains the php_memcache.dll directory for you.
4. check whether the ext directory of php is in the system environment variable.

How does php operate memcache?

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

Http://www.bkjia.com/PHPjc/864306.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/864306.htmlTechArticlephp memcache, memcache my local environment php5.2.6 memcached.exe 1.2.4 memcache dll each version has a http://pan.baidu.com/s/1hqj7ab6 may contact me php could not find mem...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.