hash

package
v1.5.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HashMap

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

func NewHashMap

func NewHashMap() *HashMap

NewHashMap creates a new hash

func (*HashMap) GetValue added in v1.2.0

func (s *HashMap) GetValue() []*pb.MemberBytes

func (*HashMap) HDel

func (s *HashMap) HDel(key ...string)

HDel deletes the value of a hash

func (*HashMap) HExists

func (s *HashMap) HExists(key string) bool

HExists checks if a key exists in a hash

func (*HashMap) HGet

func (s *HashMap) HGet(key string) []byte

HGet gets the value of a hash

func (*HashMap) HGetAll

func (s *HashMap) HGetAll() map[string][]byte

HGetAll gets all the values of a hash

func (*HashMap) HIncrBy

func (s *HashMap) HIncrBy(key string, value int64) int64

HIncrBy increments the value of a hash

func (*HashMap) HIncrByFloat

func (s *HashMap) HIncrByFloat(key string, value float64) float64

HIncByFloat increments the value of a hash

func (*HashMap) HKeys

func (s *HashMap) HKeys() []string

HKeys gets the keys of a hash

func (*HashMap) HLen

func (s *HashMap) HLen() int64

HLen gets the length of a hash

func (*HashMap) HMGet

func (s *HashMap) HMGet(fields ...string) [][]byte

HMGet gets the values of a hash

func (*HashMap) HMSet

func (s *HashMap) HMSet(values map[string][]byte)

HMSet sets the values of a hash

func (*HashMap) HScan

func (s *HashMap) HScan(cursor int64, match string, count int64) (int64, map[string][]byte)

HScan scans the values of a hash

func (*HashMap) HSet

func (s *HashMap) HSet(key string, value []byte)

HSet sets the value of a hash

func (*HashMap) HSetNX

func (s *HashMap) HSetNX(key string, value []byte) bool

HSetNX sets the value of a hash if it does not exist

func (*HashMap) HVals

func (s *HashMap) HVals() [][]byte

HVals gets the values of a hash

func (*HashMap) SetValue added in v1.2.0

func (s *HashMap) SetValue(values []*pb.MemberBytes)

SetValue the set from bytes

func (*HashMap) Type added in v1.2.0

func (s *HashMap) Type() ds.DataType

Type returns the type of the data structure

Jump to

Keyboard shortcuts

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