ichubredis

package
v1.4.124 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2024 License: MulanPSL-2.0 Imports: 16 Imported by: 2

Documentation

Index

Constants

View Source
const DEFAULT_ExpireTime = time.Second * 60 * 10
View Source
const PREKEY_USER = "user::"

Variables

This section is empty.

Functions

func InjectGredisClient added in v1.3.13

func InjectGredisClient(s *GredisClient)

func LoadGredisClient added in v1.3.13

func LoadGredisClient() baseiface.ISingleton

Types

type GredisClient added in v1.3.13

type GredisClient struct {
	basedto.BaseEntitySingle

	Group string

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

func FindBeanGredisClient added in v1.3.13

func FindBeanGredisClient() *GredisClient

FindBeanGredisClient

func NewGredisClient added in v1.3.13

func NewGredisClient() *GredisClient

func (*GredisClient) Get added in v1.3.13

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

func (*GredisClient) Set added in v1.3.13

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

type IchubRedisClient

type IchubRedisClient struct {
	Client *redis.Client `json:"-"`
	// contains filtered or unexported fields
}
var RedisInst *IchubRedisClient

func NewIchubRedisClient added in v1.0.90

func NewIchubRedisClient() *IchubRedisClient

func (*IchubRedisClient) Del added in v1.0.112

func (this *IchubRedisClient) Del(key string)

func (*IchubRedisClient) Get added in v1.0.90

func (this *IchubRedisClient) Get(key string, out any)

func (*IchubRedisClient) GetKey

func (this *IchubRedisClient) GetKey(key string) any

func (*IchubRedisClient) GetKeyInt32

func (this *IchubRedisClient) GetKeyInt32(key string) int32

func (*IchubRedisClient) GetKeyInt64

func (this *IchubRedisClient) GetKeyInt64(key string) int64

func (*IchubRedisClient) GetKeyString added in v1.0.41

func (this *IchubRedisClient) GetKeyString(key string) string

func (*IchubRedisClient) Open

func (this *IchubRedisClient) Open() *redis.Client

func (*IchubRedisClient) RedisClientDto

func (this *IchubRedisClient) RedisClientDto() *baseconfig.RedisClientDto

func (*IchubRedisClient) Set added in v1.0.91

func (this *IchubRedisClient) Set(key string, In any)

func (*IchubRedisClient) SetKey

func (this *IchubRedisClient) SetKey(key string, value any) *redis.Client

func (*IchubRedisClient) SetKeyInt32

func (this *IchubRedisClient) SetKeyInt32(key string, value int32) *redis.Client

func (*IchubRedisClient) SetKeyInt64

func (this *IchubRedisClient) SetKeyInt64(key string, value int64) *redis.Client

func (*IchubRedisClient) SetKeyTimeout added in v1.0.27

func (this *IchubRedisClient) SetKeyTimeout(key string, value any, timeout time.Duration) *redis.Client

func (*IchubRedisClient) SetRedisClientDto

func (this *IchubRedisClient) SetRedisClientDto(redisClientDto *baseconfig.RedisClientDto)

Jump to

Keyboard shortcuts

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