wrapredis

package
v0.0.0-...-99a0925 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2026 License: Apache-2.0, BSD-2-Clause Imports: 12 Imported by: 0

Documentation

Overview

Package wrapredis provides a wrapper for redis.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisWrap

type RedisWrap struct {
	RedisConnPool *redis.Pool
	ModuleName    string
	Addr          string
	// contains filtered or unexported fields
}

func GetRedis

func GetRedis() *RedisWrap

func GetRedisConnPoolWrap

func GetRedisConnPoolWrap(caller string, redisConf *config.RedisConf) *RedisWrap

func (*RedisWrap) Dial

func (r *RedisWrap) Dial() (c redis.Conn, err error)

func (*RedisWrap) Do

func (r *RedisWrap) Do(cmd string, args ...interface{}) (reply interface{}, err error)

Jump to

Keyboard shortcuts

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