constants.go
constants.go - Overview
This file defines a set of string constants used within the eval
package.
Detailed Documentation
The file declares a series of string constants. Each constant represents a specific keyword, option, or command used in the DiceDB system.
const (
BYTE = "BYTE"
BIT = "BIT"
AND string = "AND"
OR string = "OR"
XOR string = "XOR"
NOT string = "NOT"
Ex string = "EX"
Px string = "PX"
Persist string = "PERSIST"
Pxat string = "PXAT"
Exat string = "EXAT"
XX string = "XX"
NX string = "NX"
GT string = "GT"
LT string = "LT"
CH string = "CH"
INCR string = "INCR"
KeepTTL string = "KEEPTTL"
Sync string = "SYNC"
Async string = "ASYNC"
Help string = "HELP"
Memory string = "MEMORY"
Count string = "COUNT"
GetKeys string = "GETKEYS"
GetKeysandFlags string = "GETKEYSANDFLAGS"
List string = "LIST"
Info string = "INFO"
Docs string = "DOCS"
null string = "null"
WithValues string = "WITHVALUES"
WithScores string = "WITHSCORES"
WithScore string = "WITHSCORE"
REV string = "REV"
GET string = "GET"
SET string = "SET"
INCRBY string = "INCRBY"
OVERFLOW string = "OVERFLOW"
WRAP string = "WRAP"
SAT string = "SAT"
FAIL string = "FAIL"
SIGNED string = "SIGNED"
UNSIGNED string = "UNSIGNED"
CAPACITY string = "CAPACITY"
SIZE string = "SIZE"
FILTERS string = "FILTER"
ITEMS string = "ITEMS"
EXPANSION string = "EXPANSION"
)
- Purpose: Defines constant strings for various commands, options, and keywords used in the DiceDB system.
- Constants:
BYTE
: Represents the "BYTE" keyword.BIT
: Represents the "BIT" keyword.AND
: Represents the "AND" keyword.OR
: Represents the "OR" keyword.XOR
: Represents the "XOR" keyword.NOT
: Represents the "NOT" keyword.Ex
: Represents the "EX" keyword.Px
: Represents the "PX" keyword.Persist
: Represents the "PERSIST" keyword.Pxat
: Represents the "PXAT" keyword.Exat
: Represents the "EXAT" keyword.XX
: Represents the "XX" keyword.NX
: Represents the "NX" keyword.GT
: Represents the "GT" keyword.LT
: Represents the "LT" keyword.CH
: Represents the "CH" keyword.INCR
: Represents the "INCR" keyword.KeepTTL
: Represents the "KEEPTTL" keyword.Sync
: Represents the "SYNC" keyword.Async
: Represents the "ASYNC" keyword.Help
: Represents the "HELP" keyword.Memory
: Represents the "MEMORY" keyword.Count
: Represents the "COUNT" keyword.GetKeys
: Represents the "GETKEYS" keyword.GetKeysandFlags
: Represents the "GETKEYSANDFLAGS" keyword.List
: Represents the "LIST" keyword.Info
: Represents the "INFO" keyword.Docs
: Represents the "DOCS" keyword.null
: Represents the "null" keyword.WithValues
: Represents the "WITHVALUES" keyword.WithScores
: Represents the "WITHSCORES" keyword.WithScore
: Represents the "WITHSCORE" keyword.REV
: Represents the "REV" keyword.GET
: Represents the "GET" keyword.SET
: Represents the "SET" keyword.INCRBY
: Represents the "INCRBY" keyword.OVERFLOW
: Represents the "OVERFLOW" keyword.WRAP
: Represents the "WRAP" keyword.SAT
: Represents the "SAT" keyword.FAIL
: Represents the "FAIL" keyword.SIGNED
: Represents the "SIGNED" keyword.UNSIGNED
: Represents the "UNSIGNED" keyword.CAPACITY
: Represents the "CAPACITY" keyword.SIZE
: Represents the "SIZE" keyword.FILTERS
: Represents the "FILTER" keyword.ITEMS
: Represents the "ITEMS" keyword.EXPANSION
: Represents the "EXPANSION" keyword.