MCPcopy Index your code
hub / github.com/PatchMon/PatchMon / Ping

Function Ping

server-source-code/internal/redis/client.go:79–81  ·  view source on GitHub ↗

Ping verifies the Redis connection.

(ctx context.Context, client *redis.Client)

Source from the content-addressed store, hash-verified

77
78// Ping verifies the Redis connection.
79func Ping(ctx context.Context, client *redis.Client) error {
80 return client.Ping(ctx).Err()
81}
82
83// Close closes the Redis client.
84func Close(client *redis.Client) error {

Callers

nothing calls this directly

Calls 1

PingMethod · 0.45

Tested by

no test coverage detected