When memcache set stores data, it needs to calculate which memcache it should be placed on based on the consistent hashing algorithm. Does the implementation of this algorithm require us to write it manually, or after it is installed and configured with the parameters of multiple memcache, it will be automatically Now that it’s implemented, we just need to set it directly?
When memcache set stores data, it needs to calculate which memcache it should be placed on based on the consistent hashing algorithm. Does the implementation of this algorithm require us to write it manually, or after it is installed and configured with the parameters of multiple memcache, it will be automatically Now that it’s implemented, we just need to set it directly?
This needs to be implemented on the client side.
It has been implemented in the Memcached extension of PHP. You can set up the consistent distribution algorithm, and you can also specify access to different servers through the *ByKey method.
memecache’s client implements consistent hashing algorithm