storage

package
v6.7.3 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: Apache-2.0 Imports: 10 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MGet

func MGet(ctx context.Context, r Redis, keys []string) [][]byte

func MSet

func MSet(ctx context.Context, r Redis, m map[string]interface{}) error

func New

func New(cfg ormx.DBConfig) (*gorm.DB, error)

Types

type Redis

type Redis redis.Cmdable

func NewRedis

func NewRedis(cfg RedisConfig) (Redis, error)

type RedisConfig

type RedisConfig struct {
	Address  string
	Username string
	Password string
	DB       int
	UseTLS   bool
	tlsx.ClientConfig
	RedisType        string
	MasterName       string
	SentinelUsername string
	SentinelPassword string
}

Jump to

Keyboard shortcuts

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