redis

package
v0.0.0-...-0eaf191 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 3 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OptFunc

type OptFunc func(*Opts)

func WithPassword

func WithPassword(password string) OptFunc

Configure Redis password

func WithPort

func WithPort(port string) OptFunc

Configure Redis port

func WithServer

func WithServer(server string) OptFunc

Configure Redis server

type Opts

type Opts struct {
	Server   string
	Port     string
	Password string
}

type RedisDatabase

type RedisDatabase struct {
	Opts     *Opts
	Instance *redis.Client
}

func New

func New(
	optFuncs ...OptFunc,
) *RedisDatabase

Create a Redis database instance

func (*RedisDatabase) CreateDatabaseConnection

func (r *RedisDatabase) CreateDatabaseConnection()

Creates Redis database connection

Jump to

Keyboard shortcuts

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