Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientArgs ¶
func (*ClientArgs) InitClient ¶
func (r *ClientArgs) InitClient(ctx context.Context) error
InitClient creates a new Valkey client or reuses an existing one from the cache. It takes a context.Context as input and uses the ClientArgs receiver to access the Host and Port fields. The Valkey client is created with the specified Valkey address if not already in the cache. It then sends a PING command to the Valkey server to check the connection. The function returns any error encountered during client creation or the PING command.
Click to show internal directories.
Click to hide internal directories.