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 [2016/03/29 01:14] – 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:// | ||
| - | == Note == | ||
| - | Do not use the newer PEAR memcached library | ||
| </ | </ | ||
| - | ====== 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 library. | + | [[wp>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 // |
| + | |||
| + | Your platform and PHP version will be the primary decision factors between using // | ||
| + | |||
| + | ^ Platform | ||
| + | | Windows | ||
| + | | Unix | 5.x | ::: | | ||
| + | | ::: | 7.x | [[https:// | ||
| + | |||
| + | It's also worth noting that compression is not supported with // | ||
| For larger environments, | For larger environments, | ||
| + | |||
| ---------------------------------------------- | ---------------------------------------------- | ||
| + | |||
| ===== Usage ===== | ===== Usage ===== | ||
| <code php> | <code php> | ||
| $db = NewADOConnection($driver=' | $db = NewADOConnection($driver=' | ||
| + | |||
| /* | /* | ||
| - | * Enable memcache | + | * Enable memcache |
| - | */ | + | */ |
| $db-> | $db-> | ||
| + | |||
| /* | /* | ||
| - | * Add one or more servers, for use in distributed systems | + | * Add one or more servers, for use in distributed systems |
| - | */ | + | */ |
| $db-> | $db-> | ||
| + | |||
| /* | /* | ||
| - | * Optionally add the server port if it differs from the default | + | * Optionally add the server port if it differs from the default |
| - | */ | + | */ |
| $db-> | $db-> | ||
| + | |||
| /* | /* | ||
| - | * Use ' | + | * Use ' |
| - | */ | + | * Note; Compression is only supported using the memcache library. This |
| - | $db-> | + | |
| + | */ | ||
| + | $db-> | ||
| /* | /* | ||
| - | * 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.1459206884.txt.gz · Last modified: (external edit)
