repartition

A good repartition algorithm

Hi, I am implementing a memcached client library. I want it to support several servers and so I wish to add some load-balancing system. Basically, you can do two operations on a server: Store a value given its key. Get a value given its key. Let us say I have N servers (from 0 to N - 1), I'd like to have a repartition function whic...