redis

package
v1.25.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 13, 2024 License: Apache-2.0 Imports: 5 Imported by: 3

Documentation

Overview

Package redis contains shared functionality related to Redis

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateRedisClient added in v1.24.9

func CreateRedisClient(
	address string,
	databaseIndex int,
	password string,
	timeoutSeconds int,
) (*redisV9.Client, error)

CreateRedisClient creates a Redis V9 client, it has explicit checks for config params because the go-redis package lets us create a client with incorrect params so errors are only found during subsequent command executions

Types

type Client

type Client struct {
	Connection *redisV9.Client
}

Client is an implementation of the Redis client for Redis server

func (*Client) HealthCheck

func (redis *Client) HealthCheck() (err error)

HealthCheck executes PING command to check for liveness status of Redis server

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL