redisserve

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DestoryPool

func DestoryPool(pool redis.Cmdable)

DestoryPool destory the redis pool

func GetClient

func GetClient(serviceName string) redis.Cmdable

GetClient returns a redis client

func GetClusterOptionsConfig

func GetClusterOptionsConfig(serviceName string) *redis.ClusterOptions

GetClusterOptionsConfig returns the redis cluster options

func GetOptionsConfig

func GetOptionsConfig(serviceName string) *redis.Options

GetOptionsConfig returns the redis options

func InitPool

func InitPool(serviceName string) redis.Cmdable

InitPool initializes the redis pool

func ReleaseClient

func ReleaseClient(serviceName string, cmdable redis.Cmdable)

ReleaseClient release a redis client

Types

This section is empty.

Jump to

Keyboard shortcuts

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