Method: Aerospike::Node#put_connection

Defined in:
lib/aerospike/node.rb

#put_connection(conn) ⇒ Object

Put back a connection to the cache. If cache is full, the connection will be closed and discarded

[View source]

114
115
116
117
# File 'lib/aerospike/node.rb', line 114

def put_connection(conn)
  conn.close unless active?
  @connections.offer(conn)
end