v5:userguide:learn_caching:memcached
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
v5:userguide:learn_caching:memcached [2017/04/15 18:28] – mnewnham | v5:userguide:learn_caching:memcached [2018/07/16 20:18] (current) – start functions lowercase peterdd | ||
---|---|---|---|
Line 1: | Line 1: | ||
<- v5: | <- v5: | ||
~~NOTOC~~ | ~~NOTOC~~ | ||
+ | |||
+ | ====== Memcached Setup ====== | ||
<WRAP right tip box 300px> | <WRAP right tip box 300px> | ||
== Learn More == | == Learn More == | ||
[[https:// | [[https:// | ||
- | [[https:// | ||
- | [[https:// | ||
</ | </ | ||
- | ====== Memcached Setup ====== | ||
- | Memcached provides a controlled, server based memory caching service. The server is reasonably easily configured and installed, but provides a sophisticated caching configuration. PHP support for the library is available through the PHP PEAR memcache or PEAR memcached libraries. If both the memcache and memcached libraries are available, the memcache library will be used. | ||
- | Your platform and PHP version will be the primary decision factors between using memcache or memcached. In general, the following guidelines can be used. | + | [[wp> |
+ | |||
+ | Your platform and PHP version will be the primary decision factors between using //memcache// or //memcached//. In general, the following guidelines can be used. | ||
^ Platform | ^ Platform | ||
- | | Windows | + | | Windows |
- | | Unix | 5.x | memcache | + | | Unix | 5.x | ::: | |
- | | Unix | + | | ::: | 7.x | [[https:// |
- | It's also worth noting that compression is not supported with memcached. If you need cache compression, | + | It's also worth noting that compression is not supported with //memcached//. If you need cache compression, |
For larger environments, | For larger environments, | ||
+ | |||
---------------------------------------------- | ---------------------------------------------- | ||
+ | |||
===== Usage ===== | ===== Usage ===== | ||
<code php> | <code php> | ||
Line 51: | Line 53: | ||
* We connect to the database, not the memcache server | * We connect to the database, not the memcache server | ||
*/ | */ | ||
- | $db->Connect(' | + | $db->connect(' |
</ | </ | ||
v5/userguide/learn_caching/memcached.1492273682.txt.gz · Last modified: 2017/04/21 11:40 (external edit)