Zend Framework

Patch: Zend_Cache_Backend_Memcached "weight" parameter support

Details

  • Type: Improvement Improvement
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.7.1
  • Fix Version/s: 1.7.2
  • Component/s: Zend_Cache
  • Labels:
    None
  • Fix Version Priority:
    Nice to Have

Description

This patch: http://temp.dklab.ru/Memcached.php.patch.txt
adds the support of $weights parameter to memcached backend.

Documentation at http://php.net/manual/en/function.memcache-addserver.php 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?

Activity

Hide
Satoru Yoshida added a comment -

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.

Show
Satoru Yoshida added a comment - 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.
Hide
Satoru Yoshida added a comment -

I fix documents also in SVN r13418

Show
Satoru Yoshida added a comment - I fix documents also in SVN r13418

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved:

Time Tracking

Estimated:
Not Specified
Original Estimate - Not Specified
Remaining:
0m
Remaining Estimate - 0 minutes
Logged:
40m
Time Spent - 40 minutes