redis

package
v0.0.0-...-ff06b4a Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2022 License: MIT Imports: 7 Imported by: 0

README

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReleaseInstance

func ReleaseInstance()

Types

type RedisConnPoolSingleton

type RedisConnPoolSingleton struct {
	// contains filtered or unexported fields
}

func GetOrCreateInstance

func GetOrCreateInstance(cfg *conf.RedisService) *RedisConnPoolSingleton

func (*RedisConnPoolSingleton) ExecCommand

func (p *RedisConnPoolSingleton) ExecCommand(cmd string, args ...interface{}) (interface{}, error)

ExecCommand 执行redis命令, 完成后自动归还连接.

func (*RedisConnPoolSingleton) ExecLuaScript

func (p *RedisConnPoolSingleton) ExecLuaScript(src string, keyCount int, keysAndArgs ...interface{}) (interface{}, error)

ExecLuaScript 执行lua脚本, 完成后自动归还连接.

Jump to

Keyboard shortcuts

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