cache

package
v1.5.8 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name = "redis"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisComponent

type RedisComponent struct {
	Addr        string `toml:"addr" json:"addr"`
	Username    string `toml:"username" json:"username"`
	Password    string `toml:"password" json:"password"`
	DB          int    `toml:"db" json:"db"`
	PoolSize    int    `toml:"pool_size" json:"pool_size"`
	PoolTimeout int    `toml:"pool_timeout" json:"pool_timeout"`
	// contains filtered or unexported fields
}

func NewRedisCache added in v1.5.5

func NewRedisCache(conf config.ConfigMate) *RedisComponent

func (*RedisComponent) GetCache

func (rds *RedisComponent) GetCache() *redis.Client

func (*RedisComponent) Name

func (rds *RedisComponent) Name() string

Jump to

Keyboard shortcuts

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