forked from p93542168/wheat-cache
90 lines
1.2 KiB
Go
90 lines
1.2 KiB
Go
// Code generated by gen-struct. DO NOT EDIT.
|
|
// make gen-struct generated
|
|
|
|
package structure
|
|
|
|
const (
|
|
DEFAULT_KEY = iota
|
|
|
|
STRING_X
|
|
LIST_X
|
|
)
|
|
|
|
const (
|
|
DEFAULT_COMM = iota
|
|
Set
|
|
Get
|
|
Add
|
|
Reduce
|
|
SetBit
|
|
GetBit
|
|
GetRange
|
|
GetSet
|
|
StrLen
|
|
Setnx
|
|
LIndex
|
|
LLen
|
|
LPop
|
|
LPush
|
|
LPushX
|
|
LRange
|
|
LRem
|
|
LSet
|
|
RPop
|
|
LTrim
|
|
RPush
|
|
RPushX
|
|
)
|
|
|
|
var CommKeyString = map[string]int{
|
|
"Set": STRING_X,
|
|
"Get": STRING_X,
|
|
"Add": STRING_X,
|
|
"Reduce": STRING_X,
|
|
"SetBit": STRING_X,
|
|
"GetBit": STRING_X,
|
|
"GetRange": STRING_X,
|
|
"GetSet": STRING_X,
|
|
"StrLen": STRING_X,
|
|
"Setnx": STRING_X,
|
|
|
|
"LIndex": LIST_X,
|
|
"LLen": LIST_X,
|
|
"LPop": LIST_X,
|
|
"LPush": LIST_X,
|
|
"LPushX": LIST_X,
|
|
"LRange": LIST_X,
|
|
"LRem": LIST_X,
|
|
"LSet": LIST_X,
|
|
"RPop": LIST_X,
|
|
"LTrim": LIST_X,
|
|
"RPush": LIST_X,
|
|
"RPushX": LIST_X,
|
|
}
|
|
|
|
var CommKey = map[int]int{
|
|
Set: STRING_X,
|
|
Get: STRING_X,
|
|
Add: STRING_X,
|
|
Reduce: STRING_X,
|
|
SetBit: STRING_X,
|
|
GetBit: STRING_X,
|
|
GetRange: STRING_X,
|
|
GetSet: STRING_X,
|
|
StrLen: STRING_X,
|
|
Setnx: STRING_X,
|
|
|
|
LIndex: LIST_X,
|
|
LLen: LIST_X,
|
|
LPop: LIST_X,
|
|
LPush: LIST_X,
|
|
LPushX: LIST_X,
|
|
LRange: LIST_X,
|
|
LRem: LIST_X,
|
|
LSet: LIST_X,
|
|
RPop: LIST_X,
|
|
LTrim: LIST_X,
|
|
RPush: LIST_X,
|
|
RPushX: LIST_X,
|
|
}
|