When memcacheset is used to store data, it is necessary to calculate which memcache is to be placed based on the consistent hash algorithm. the implementation of this algorithm requires manual writing or installation, many memcache parameters are automatically configured. we only need to set them directly? When the memcache set stores data, it is necessary to calculate which memcache should be placed based on the consistent hash algorithm. the implementation of this algorithm requires manual writing or installation, many memcache parameters are automatically configured. we only need to set them directly?
Reply content:
When the memcache set stores data, it is necessary to calculate which memcache should be placed based on the consistent hash algorithm. the implementation of this algorithm requires manual writing or installation, many memcache parameters are automatically configured. we only need to set them directly?
This requires client implementation.
The Memcached extension in PHP has been implemented. you can set the consistency distribution algorithm or use the * ByKey method to access different servers.
Memecache client implements consistent hash algorithm