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脚本, 完成后自动归还连接.
Click to show internal directories.
Click to hide internal directories.