Class: TokyoTyrant::Balancer::Table
- Defined in:
- ext/tokyo_tyrant/balancer.rb
Instance Method Summary collapse
Methods inherited from Base
#add_double, #add_int, #check, #close, #db_for_key, #delete_keys_with_prefix, #empty?, #fetch, #fwmkeys, #get, #get_double, #get_int, #initialize, #keys, #optimize, #out, #put, #putcat, #putkeep, #putnr, #putshl, #ring, #rnum, #servers, #set_index, #sync, #values, #vanish, #vsiz
Constructor Details
This class inherits a constructor from TokyoTyrant::Balancer::Base
Instance Method Details
#find(&block) ⇒ Object
178 179 180 181 182 183 |
# File 'ext/tokyo_tyrant/balancer.rb', line 178 def find(&block) queries = @servers.collect{ |server| server.prepare_query(&block) } TokyoTyrant::Query.parallel_search(*queries) end |
#klass ⇒ Object
174 175 176 |
# File 'ext/tokyo_tyrant/balancer.rb', line 174 def klass TokyoTyrant::Table end |