redisengine

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: MulanPSL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const ExpireTime = 1000000 * 10
View Source
const PREKEY_USER = "user::"

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisEngine

type RedisEngine struct {
	Client *redis.Client
	// contains filtered or unexported fields
}
var RedisHelperInst *RedisEngine

func (*RedisEngine) GetKey

func (helper *RedisEngine) GetKey(key string) any

func (*RedisEngine) GetKeyInt32

func (helper *RedisEngine) GetKeyInt32(key int32) any

func (*RedisEngine) GetKeyInt64

func (helper *RedisEngine) GetKeyInt64(key int64) any

func (*RedisEngine) Open

func (helper *RedisEngine) Open() *redis.Client

func (*RedisEngine) SetKey

func (helper *RedisEngine) SetKey(key string, value any) *redis.Client

func (*RedisEngine) SetKeyInt32

func (helper *RedisEngine) SetKeyInt32(key int32, value any) *redis.Client

func (*RedisEngine) SetKeyInt64

func (helper *RedisEngine) SetKeyInt64(key int64, value any) *redis.Client

Jump to

Keyboard shortcuts

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