ichubredis

package
v1.0.1-rel-01 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: AFL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InjectGredisClient

func InjectGredisClient(s *GredisClient)

func LoadGredisClient

func LoadGredisClient() baseiface.ISingleton

Types

type GredisClient

type GredisClient struct {
	basedto.BaseEntitySingle

	Group string
	Cfg   *ichubconfig.IchubConfig
	*gredis.Redis
	// contains filtered or unexported fields
}

func FindBeanGredisClient

func FindBeanGredisClient() *GredisClient

FindBeanGredisClient

func NewGredisClient

func NewGredisClient() *GredisClient

func (*GredisClient) Get

func (goredis *GredisClient) Get(key string) (*gvar.Var, error)

func (*GredisClient) PingPong

func (goredis *GredisClient) PingPong()

func (*GredisClient) Set

func (goredis *GredisClient) Set(key string, value any) error

func (*GredisClient) SetEX

func (goredis *GredisClient) SetEX(key string, value any, timeout int64) error

suite.inst.Redis.Do(context.Background(), "SETEX", "k", 2000, "v4")

Jump to

Keyboard shortcuts

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