redis

package
v0.0.0-...-ef50a8d Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ProviderSet = wire.NewSet(
		NewRedis,
	)
)

Functions

This section is empty.

Types

type Redis

type Redis struct {
	*xredis.Client
}

func (*Redis) GetNodeId

func (r *Redis) GetNodeId() (int64, error)

todo 采用 redis 的原子操作,这里目前是为了先实现功能

type RedisInterface

type RedisInterface interface {
	// todo 采用 redis 的原子操作,这里目前是为了先实现功能
	GetNodeId() (int64, error)
}

RedisInterface ...

func NewRedis

func NewRedis() RedisInterface

Jump to

Keyboard shortcuts

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