Documentation ¶
Index ¶
- Variables
- type Config
- type Connection
- type CreateKeyValueRequest
- type DbItem
- type HashAddOrUpdateFieldRequest
- type HashFieldDeleteRequest
- type KeyListRequest
- type KeyValue
- type KeyValueReply
- type KeyValueRequest
- type ListValueRequest
- type SSHConfig
- type SetValueRequest
- type UpdateKeyValueRequest
- type ZSetValueRequest
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DefaultKeyLen 键列表的默认查询长度 DefaultKeyLen int64 = 100 // MaxKeyLen 键列表的最大查询长度 MaxKeyLen int64 = 2000 // MaxHashLen hash列表的最大查询长度 MaxHashLen int64 = 200 // MaxListLen list列表的最大查询长度 MaxListLen int64 = 200 // MaxSetLen set的最大查询长度 MaxSetLen int64 = 200 // MaxZSetLen zset的最大查询长度 MaxZSetLen int64 = 200 )
View Source
var ConfigName = "redis-client.conf"
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Connections []*Connection `json:"connections"`
}
type Connection ¶
type CreateKeyValueRequest ¶
type CreateKeyValueRequest struct { KeyValueRequest Type string `json:"type"` }
type HashAddOrUpdateFieldRequest ¶
type HashAddOrUpdateFieldRequest struct { KeyValueRequest Field string `json:"field"` Value string `json:"value"` }
type HashFieldDeleteRequest ¶
type HashFieldDeleteRequest struct { KeyValueRequest Field []string `json:"field"` }
type KeyListRequest ¶
type KeyValueReply ¶
type KeyValueRequest ¶
type ListValueRequest ¶ added in v0.1.2
type ListValueRequest struct { KeyValueRequest Value string `json:"value"` }
type SetValueRequest ¶ added in v0.1.2
type SetValueRequest struct { KeyValueRequest Value string `json:"value"` }
type UpdateKeyValueRequest ¶
type UpdateKeyValueRequest struct { KeyValueRequest TTL time.Duration `json:"ttl"` Value string `json:"value"` }
type ZSetValueRequest ¶ added in v0.1.2
type ZSetValueRequest struct { KeyValueRequest Score float64 `json:"score"` Member interface{} `json:"member"` }
Click to show internal directories.
Click to hide internal directories.