instance method entry_count_for

Ruby on Rails 2.3.18

Since v2.3.18 Last seen in v2.3.18

Signature

entry_count_for(server, total_servers, total_weight)

No documentation comment.

Parameters

server req
total_servers req
total_weight req
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

Type at least 2 characters to search.

↑↓ navigate · open · esc close