instance method
entry_count_for
Ruby on Rails 2.3.18
Since v2.3.18 Last seen in v2.3.18Signature
entry_count_for(server, total_servers, total_weight)
No documentation comment.
Parameters
-
serverreq -
total_serversreq -
total_weightreq
Source
# File activesupport/lib/active_support/vendor/memcache-client-1.7.4/memcache.rb, line 887
def entry_count_for(server, total_servers, total_weight)
((total_servers * Continuum::POINTS_PER_SERVER * server.weight) / Float(total_weight)).floor
end
Defined in activesupport/lib/active_support/vendor/memcache-client-1.7.4/memcache.rb line 887
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in MemCache