ZF-5260: Patch: Zend_Cache_Backend_Memcached "weight" parameter support


This patch: adds the support of $weights parameter to memcached backend.

Documentation at… says: weight Number of buckets to create for this server which in turn control its probability of it being selected. The probability is relative to the total weight of all servers.

This is quite useful in heavy-loaded projects. Note that DEFAULT_WEIGHT = 1 is brought from PHP memcache extension source code and correct.

Could you please apply it in a next ZF release?


Solved in SVN r13367. I add not only the weight, but also timeout, retry_interval and status. I assumed the value of timeout to be 5 seconds.

I fix documents also in SVN r13418