Does the distributed consistent hash of memcache automatically implement memcach or manually write an algorithm?

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.