rediskeytype

package
v1.2.9 Latest Latest
Warning

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

Go to latest
Published: May 19, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisKeyType

type RedisKeyType int
const (
	UNKNOWN RedisKeyType = 0
	String  RedisKeyType = 1
	List    RedisKeyType = 2
	Set     RedisKeyType = 3
	ZSet    RedisKeyType = 4
	Hash    RedisKeyType = 5
	Stream  RedisKeyType = 6
)

func (RedisKeyType) Caption

func (i RedisKeyType) Caption() string

Caption retrieves a RedisKeyType enum string caption

func (RedisKeyType) CaptionMap

func (i RedisKeyType) CaptionMap() map[RedisKeyType]string

CaptionMap returns all captions of the enum RedisKeyType in a K:RedisKeyType,V:caption map

func (RedisKeyType) Description

func (i RedisKeyType) Description() string

Description retrieves a RedisKeyType enum string description

func (RedisKeyType) DescriptionMap

func (i RedisKeyType) DescriptionMap() map[RedisKeyType]string

DescriptionMap returns all descriptions of the enum RedisKeyType in a K:RedisKeyType,V:description map

func (RedisKeyType) IntString

func (i RedisKeyType) IntString() string

IntString gets the intrinsic enum integer value represented in string format

func (RedisKeyType) IntValue

func (i RedisKeyType) IntValue() int

IntValue gets the intrinsic enum integer value

func (RedisKeyType) Key

func (i RedisKeyType) Key() string

Key retrieves a RedisKeyType enum string key

func (RedisKeyType) KeyMap

func (i RedisKeyType) KeyMap() map[RedisKeyType]string

KeyMap returns all keys of the enum RedisKeyType in a K:RedisKeyType,V:key map

func (RedisKeyType) NameMap

func (i RedisKeyType) NameMap() map[string]RedisKeyType

NameMap returns all names of the enum RedisKeyType in a K:name,V:RedisKeyType map

func (RedisKeyType) ParseByKey

func (i RedisKeyType) ParseByKey(s string) (RedisKeyType, error)

ParseByKey retrieves a RedisKeyType enum value from the enum string key, throws an error if the param is not part of the enum

func (RedisKeyType) ParseByName

func (i RedisKeyType) ParseByName(s string) (RedisKeyType, error)

ParseByName retrieves a RedisKeyType enum value from the enum string name, throws an error if the param is not part of the enum

func (RedisKeyType) String

func (i RedisKeyType) String() string

func (RedisKeyType) Valid

func (i RedisKeyType) Valid() bool

Valid returns 'true' if the value is listed in the RedisKeyType enum map definition, 'false' otherwise

func (RedisKeyType) ValueSlice

func (i RedisKeyType) ValueSlice() []RedisKeyType

ValueSlice returns all values of the enum RedisKeyType in a slice

Jump to

Keyboard shortcuts

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