This article mainly introduces Memcache in PHP. starting from introduction to Memcache, it describes in detail the differences between Memcache and memcached, all PHP Memcache operation methods, and detailed explanations of each operation method,
Memcache functions in PHP
Memcache functions are listed as follows:
Memcache: add? Add a value. if it already exists, false is returned.
Memcache: addServer? Add an available server address
Memcache: close? Disables a Memcache object.
Large website Optimization-memcache technology, Optimization-memcache TechnologyLarge website Optimization-memcache Technology
Memory + cache memory cacheIntroduction to memcache
Memcache is a setDistributedHigh SpeedCache SystemDeveloped by Brad
As for the installation configuration of memcache, we will not say that there were two better articles as follows: The Windows 64-bit system configuration installs Memcache cache http://www.111cn.net/sys/Windows/61708. HTM Linux system memcache
Transferred from www.5iphp.com
The memcache function library is used in the PECL (PhP extension Community Library) to build a temporary storage area for large-capacity memory data. Its role is evident in distributed systems, otherwise, it is not
Data caching:
With the development of Internet technology, the bottleneck of network speed is mainly focused on access distance and server load capacity.
An extended server or mirror server is expensive to operate and maintain as a basic solution,
The installation environment of php and memcache in linux is Ubuntu13.10 i386, and nginx and mysql servers have been installed. The current task is to install php and memcache. Dry goods directly, not to mention anything.
1. php installation and
Explanation of using memcache to store sessions based on php. The PHP sessions of the web server are all sent to memcached, so that no matter which web server you allocate the ip connection to by the distributor, the configuration method is very
This article provides a detailed analysis of the use of memcache to store sessions in php. For more information, see memcache.
The php sessions on the web server are all sent to memcached, so that no matter which web server you allocate the ip
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.