module Aerospike::Connection::Create
Public Class Methods
call(host, port, timeout: 30, tls_name: nil, tls_options: nil)
click to toggle source
# File lib/aerospike/connection/create.rb, line 24 def call(host, port, timeout: 30, tls_name: nil, tls_options: nil) if !tls_options.nil? && tls_options[:enable] != false ::Aerospike::Socket::SSL.connect( host, port, timeout, tls_name, tls_options ) else ::Aerospike::Socket::TCP.connect(host, port, timeout) end end