Starter

package module
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

README

redis-pool-starter

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetIntMustOption

func GetIntMustOption(optionName string, data map[string]interface{}) interface{}

*

  • @Author yNsLuHan
  • @Description:
  • @Time 2021-08-23 12:12:08
  • @param optionName
  • @param data
  • @return string

func GetIntOption

func GetIntOption(optionName string, data map[string]interface{}) interface{}

*

  • @Author yNsLuHan
  • @Description:
  • @Time 2021-08-23 12:12:08
  • @param optionName
  • @param data
  • @return string

func GetSentinel

func GetSentinel() map[string]*redis.Client

*

  • @Author yNsLuHan
  • @Description:
  • @Time 2021-08-23 16:07:48
  • @return map[string]*redis.Client

func GetStringMustOption

func GetStringMustOption(optionName string, data map[string]interface{}) interface{}

*

  • @Author yNsLuHan
  • @Description:
  • @Time 2021-08-23 12:12:08
  • @param optionName
  • @param data
  • @return string

func GetStringOption

func GetStringOption(optionName string, data map[string]interface{}) interface{}

*

  • @Author yNsLuHan
  • @Description:
  • @Time 2021-08-23 12:12:08
  • @param optionName
  • @param data
  • @return string

func InitRedisSentinel added in v1.0.3

func InitRedisSentinel(config *viper.Viper, name string)

func SetRedisDb

func SetRedisDb(m map[string]interface{}, nodeName string)

*

  • @Author yNsLuHan
  • @Description:
  • @Time 2021-06-08 15:26:02

Types

This section is empty.

Jump to

Keyboard shortcuts

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