Method: Dalli::Socket::TCP.open
- Defined in:
- lib/dalli/socket.rb
.open(host, port, options = {}) ⇒ Object
91 92 93 94 95 96 97 98 |
# File 'lib/dalli/socket.rb', line 91 def self.open(host, port, = {}) create_socket_with_timeout(host, port, ) do |sock| sock. = { host: host, port: port }.merge() (sock, ) [:ssl_context] ? wrapping_ssl_socket(sock, host, [:ssl_context]) : sock end end |