Documentation ¶
Index ¶
- Variables
- type Command
- type CommandType
- type Error
- type Modifier
- func Eq(v interface{}) Modifier
- func Gt(v interface{}) Modifier
- func GtEq(v interface{}) Modifier
- func Key(tokens ...interface{}) Modifier
- func KeyPrefix(prefix string) Modifier
- func Limit(v int) Modifier
- func Lt(v interface{}) Modifier
- func LtEq(v interface{}) Modifier
- func Offset(v int) Modifier
- func Reverse() Modifier
- type Query
- type QueryKey
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DefaultKeyDelimiter is used to join tokens for key parameters in default. DefaultKeyDelimiter = ":" // DefaultKeyPrefixDelimiter is used to join key and prefix in default. DefaultKeyPrefixDelimiter = "/" )
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct { Name string Args []interface{} }
Command contains a redis command name and args.
type CommandType ¶
type CommandType int
CommandType represents operation types of a query.
const ( CommandList CommandType = iota CommandCount )
Command types
type Modifier ¶
type Modifier func(*Query)
Modifier modifies a Query object.
func Eq ¶
func Eq(v interface{}) Modifier
Eq specifies a value range with `=` for scores of a query.
func Gt ¶
func Gt(v interface{}) Modifier
Gt specifies a value range with `>` for scores of a query.
func GtEq ¶
func GtEq(v interface{}) Modifier
GtEq specifies a value range with `>=` for scores of a query.
func Lt ¶
func Lt(v interface{}) Modifier
Lt specifies a value range with `<` for scores of a query.
Click to show internal directories.
Click to hide internal directories.