News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

PHPImpact Blog:
Memcached consistent hashing mechanism
December 24, 2008 @ 10:21:34

The PHP::Impact blog has a recommendation for those using the memcache functions in their PHP applications - be sure your hashing strategy matches what your script does.

If you are using the Memcache functions through a PECL extension, you can set global runtime configuration options by specifying the values within your php.ini file. One of them is memcache.hash_strategy. This option sets the hashing mechanism used to select and specifies which hash strategy to use: Standard (default) or Consistent.

The recommendation is to set it to consistent to allow for the most flexibility on adding and removing servers from the caching server pool without the need for outside intervention.

0 comments voice your opinion now!
cache memcache hashing mechanism recommendation consistent


blog comments powered by Disqus

Similar Posts

Padraic Brady's Blog: Zend Framework Caching (Parts 1, 2 & 2b)

Timoh's Blog: Aggressive password stretching - A solution to the low-entropy keys problem?

Script-Tutorials.com: How to use Memcache with PHP

JSLabs Blog: How to stop IE from caching AJAX requests

HowTo Forge: Installing The PHP-MemCache Module On CentOS 5.0


Community Events





Don't see your event here?
Let us know!


community laravel zendserver install deployment opinion list tips package framework introduction update symfony library api podcast release series interview language

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework