Documentation ¶
Index ¶
- func RedisConnectLocal(conf RedisConfig) bool
- func RedisConnectRemote(conf RedisConfig) bool
- func RedisMarshal(data interface{}) []byte
- func RedisMarshalWithGob(data interface{}) *bytes.Buffer
- func RedisUnmarshal(data []byte, reply interface{})
- func RedisUnmarshalWithGob(data []byte, reply interface{})
- func RedisValues(reply interface{}, err error) ([]interface{}, error)
- type MongoDB
- type Mysql
- type Redis
- func (owner *Redis) ReadCommand(cmd string, args ...interface{}) (interface{}, error)
- func (owner *Redis) ReadCommands(cmd string, args ...interface{}) error
- func (owner *Redis) ReadCommandsFlush() error
- func (owner *Redis) ReadCommandsReply() (interface{}, error)
- func (owner *Redis) WriteCommand(cmd string, args ...interface{}) (interface{}, error)
- func (owner *Redis) WriteCommands(cmd string, args ...interface{}) error
- func (owner *Redis) WriteCommandsFlush() error
- func (owner *Redis) WriteCommandsReply() (interface{}, error)
- type RedisConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RedisMarshal ¶
func RedisMarshal(data interface{}) []byte
RedisMarshal convert interface{} to redis data. (json type.)
func RedisMarshalWithGob ¶
RedisMarshalWithGob convert interface{} to redis data.
func RedisUnmarshal ¶
func RedisUnmarshal(data []byte, reply interface{})
RedisUnmarshal convert redis data to interface{}. (json type.)
func RedisUnmarshalWithGob ¶
func RedisUnmarshalWithGob(data []byte, reply interface{})
RedisUnmarshalWithGob convert redis data to interface{}.
func RedisValues ¶
RedisValues convert interface{} to []interface{}
Types ¶
type Redis ¶
type Redis struct {
// contains filtered or unexported fields
}
Redis TODO
var InsRedisLocal *Redis
InsRedisLocal local redis instance.
var InsRedisRemote *Redis
InsRedisRemote remote redis instance.
func (*Redis) ReadCommand ¶
ReadCommand TODO
func (*Redis) ReadCommands ¶
ReadCommands TODO
func (*Redis) ReadCommandsFlush ¶
ReadCommandsFlush TODO
func (*Redis) ReadCommandsReply ¶
ReadCommandsReply TODO
func (*Redis) WriteCommand ¶
WriteCommand TODO
func (*Redis) WriteCommands ¶
WriteCommands TODO
func (*Redis) WriteCommandsFlush ¶
WriteCommandsFlush TODO
func (*Redis) WriteCommandsReply ¶
WriteCommandsReply TODO
Click to show internal directories.
Click to hide internal directories.