Documentation ¶
Index ¶
- Variables
- type Option
- type Redis
- func (m *Redis) Close() (err error)
- func (m *Redis) Delete(key string) (err error)
- func (m *Redis) DeleteField(key, field string) (err error)
- func (m *Redis) Dial(ctx context.Context, network, addr string) (net.Conn, error)
- func (m *Redis) Get(key, field string) (result string, err error)
- func (m *Redis) HGET(key, field string) (result string, err error)
- func (m *Redis) HMSet(key string, list []RedisSetter) (msg string, err error)
- func (m *Redis) HVALS(key string) (result []string, err error)
- func (m *Redis) Set(key, field, value string) (msg string, err error)
- func (m *Redis) Setup(prefix string) (err error)
- type RedisSetter
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrRedisInvalid = errors.New("redis is not available")
Functions ¶
This section is empty.
Types ¶
type Redis ¶
type Redis struct {
// contains filtered or unexported fields
}
*
- @description: 写入redis数据
- @param {*}
- @return {*}
func (*Redis) DeleteField ¶
type RedisSetter ¶
type RedisSetter interface {
GetID() string
}
Click to show internal directories.
Click to hide internal directories.