Class: RedisClient::HiredisConnection::SSLContext

Inherits:
Object
  • Object
show all
Defined in:
lib/redis_client/hiredis_connection.rb,
ext/redis_client/hiredis/hiredis_connection.c

Instance Method Summary collapse

Constructor Details

#initialize(ca_file: nil, ca_path: nil, cert: nil, key: nil, hostname: nil) ⇒ SSLContext

Returns a new instance of SSLContext.



35
36
37
38
39
# File 'lib/redis_client/hiredis_connection.rb', line 35

def initialize(ca_file: nil, ca_path: nil, cert: nil, key: nil, hostname: nil)
  if (error = init(ca_file, ca_path, cert, key, hostname))
    raise error
  end
end