OSHiredisContextTcp
Description
A concrete subclass of <OSHiredisStructure> that maps to the nested tcp struct within a redisContext. It holds connection-specific details for a TCP/IP connection, such as the host IP address and port number.
Class Methods
None
Instance Methods
host
Answer the hostname for the TCP connection.
Answers:
<String> The hostname, or nil if not set.
port
Answer the port number for the TCP connection.
Answers:
<Integer> The port number.
sourceAddress
Answer the source address for the TCP connection.
Answers:
<String> The source address, or nil if not set.
Last modified date: 01/22/2026