PHPMemcache details and simple applications (12 ). Introduction: memcached is a high-performance, distributed memory object cache system. It is usually used to reduce the load pressure on database tutorials to improve the response speed of dynamic web applications. Introduction to this extension:
Memcached is a high-performance, distributed memory object cache system. It is usually used to reduce the load pressure on database tutorials to improve the response speed of dynamic web applications.
This extension uses the api provided by the libmemcached library to interact with the memcached server. It also provides a session processor (memcached ). It also provides a session processor.
For more information about libmemcached, visit http://libmemcached.org/libmemcached.html.
Memcache requirements:
This extension requires the libmemcached client library.
Install memcache:
Information about installing this pecl extension can be found in the installation section named pecl extension in the manual. Additional information, such as new release version, download, source file, additional information such as new releases, maintenance personnel information and change logs, etc., are here: http://pecl.php tutorial. net/package/memcached.
If libmemcached is installed in a non-standard path, use -- with-libmemcached-dir = dir to specify the path. dir is the prefix parameter for libmemcached installation. This path must contain the file include/libmemcached/memcached. h.
Zlib is required to support compression. For non-standard zlib libraries, use -- with-zlib-dir = dir to specify the zlib installation path. dir is the prefix parameter during zib installation.
The session processor is enabled by default. To disable it, use the -- disable-memcached-session option.
Predefined constants:
The following constants are extended and can only be used when being extended and compiled into php or dynamically loaded at runtime.
Memcached: opt_compression
Enable or disable the compression function. When it is enabled, when the item value exceeds a certain threshold (currently 100 bytes), it will first compress and store the value, decompress the value when it is obtained, and then return, make the compression transparent to the application layer.
Type: boolean. default value: true.
Memcached: opt_serializer
A serialization tool that serializes non-standard values. Available values include memcached: serializer_php and memcached: serializer_igbinary. The latter is only valid when the -- enable-memcached-igbinary option is enabled during memcached configuration and the igbinary extension is loaded.
Type: integer. default value: memcached: serializer_php.
Memcached: serializer_php
The default php Serialization tool (namely the serialize method ).
1 2
Memcached is a high-performance, distributed memory object cache system. It is usually used to reduce the load pressure on database tutorials to improve the response speed of dynamic web applications. This extension makes...