redis

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HashRedis

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

func NewRedisHash

func NewRedisHash(Addr, Password string, DB int) *HashRedis

func (*HashRedis) HDel

func (r *HashRedis) HDel(key string, fields ...string) *redis.IntCmd

func (*HashRedis) HExists

func (r *HashRedis) HExists(key string, field string) *redis.BoolCmd

func (*HashRedis) HGet

func (r *HashRedis) HGet(key string, field string) *redis.StringCmd

func (*HashRedis) HKeys

func (r *HashRedis) HKeys(key string) *redis.StringSliceCmd

func (*HashRedis) HLen

func (r *HashRedis) HLen(key string) *redis.IntCmd

func (*HashRedis) HMGet

func (r *HashRedis) HMGet(key string, fields ...string) *redis.SliceCmd

func (*HashRedis) HMSet

func (r *HashRedis) HMSet(key string, values map[string]interface{}) *redis.BoolCmd

func (*HashRedis) HSet

func (r *HashRedis) HSet(key string, field string, value interface{}) *redis.IntCmd

func (*HashRedis) HVal

func (r *HashRedis) HVal(key string) *redis.StringSliceCmd

type HashRedisInterface

type HashRedisInterface interface {
	HGet(key string, field string) *redis.StringCmd
	HSet(key string, field string, value interface{}) *redis.BoolCmd
	HDel(key string, fields ...string) *redis.IntCmd
	HExists(key string, field string) *redis.BoolCmd
	HKeys(key string) *redis.StringSliceCmd
	HLen(key string) *redis.IntCmd
	HMGet(key string, fields ...string) *redis.SliceCmd
	HMSet(key string, values map[string]interface{}) *redis.StatusCmd
	HVal(key string) *redis.SliceCmd
}

Jump to

Keyboard shortcuts

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