redis

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command

func Command(ctx context.Context, cachePool *redis.Pool, command, keyCache string, data interface{}) (interface{}, error)

Command General function

func Connect

func Connect(cacheOptions CacheOptions) *redis.Pool

Connect is connection to redis

Types

type CacheOptions

type CacheOptions struct {
	Host          string
	Port          int
	Password      string
	MaxIdle       int
	MaxActive     int
	IdleTimeout   int
	Enabled       bool
	DatabaseIndex int
}

CacheOptions is config redis

Jump to

Keyboard shortcuts

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