easyredis

package
v0.0.0-...-212a885 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Redis

type Redis struct {
	// contains filtered or unexported fields
}

*

  • @description: 写入redis数据
  • @param {*}
  • @return {*}

func NewSimpleRedis

func NewSimpleRedis(prefix string) (r *Redis, err error)

*

  • @description: 新建一个redis
  • @param {string} prefix
  • @return {*}

func (*Redis) HGET

func (m *Redis) HGET(key, field string) (result string, err error)

func (*Redis) HMSet

func (m *Redis) HMSet(key string, list []RedisSetter) (msg string, err error)

func (*Redis) HVALS

func (m *Redis) HVALS(key string) (result []string, err error)

HVALS

func (*Redis) Setup

func (m *Redis) Setup(prefix string) (err error)

*

  • @description: web客户端的初始化
  • @param {string} prefix key的前缀
  • @return {*}

type RedisSetter

type RedisSetter interface {
	GetID() string
}

Jump to

Keyboard shortcuts

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