Method: Aerospike::ConnectionPool#create
- Defined in:
- lib/aerospike/utils/connection_pool.rb
permalink #create ⇒ Object
[View source]
28 29 30 31 32 33 34 35 |
# File 'lib/aerospike/utils/connection_pool.rb', line 28 def create conn = nil loop do conn = cluster.create_connection(host) break if conn.connected? end conn end |