Class: TokyoTyrant::Balancer::Table
- Defined in:
- lib/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
181 182 183 184 185 186 |
# File 'lib/tokyo_tyrant/balancer.rb', line 181 def find(&block) queries = @servers.collect{ |server| server.prepare_query(&block) } TokyoTyrant::Query.parallel_search(*queries) end |
#klass ⇒ Object
177 178 179 |
# File 'lib/tokyo_tyrant/balancer.rb', line 177 def klass TokyoTyrant::Table end |