Documentation
¶
Index ¶
- Constants
- func ReadLine(r *bufio.Reader) (string, error)
- type Client
- func (c *Client) AddToPipeline(command string) error
- func (c *Client) Append(key string, value string) (int, error)
- func (c *Client) BitCount(key string) (int, error)
- func (c *Client) BitCountWithIndex(key string, start int, end int) (int, error)
- func (c *Client) BitOp(operation string, destkey string, keys []string) (int, error)
- func (c *Client) BitPos(key string, bit uint8) (int, error)
- func (c *Client) BitPosWithRange(key string, bit uint8, start int, end int) (int, error)
- func (c *Client) BitPosWithStartRange(key string, bit uint8, start int) (int, error)
- func (c *Client) Channels(pattern string) ([]string, error)
- func (c *Client) Decr(key string) (int, error)
- func (c *Client) DecrBy(key string, decrement int) (int, error)
- func (c *Client) Del(keys ...string) (int, error)
- func (c *Client) EndPipeline()
- func (c *Client) ExecPipeline() <-chan *Response
- func (c *Client) Exists(keys ...string) (int, error)
- func (c *Client) FlushDB() error
- func (c *Client) Get(key string) (string, error)
- func (c *Client) GetBit(key string, offset int) (int, error)
- func (c *Client) GetRange(key string, start int, end int) (int, error)
- func (c *Client) GetSet(key string, value string) (int, error)
- func (c *Client) HDel(key string, fields ...string) (int, error)
- func (c *Client) HExists(key string, field string) (int, error)
- func (c *Client) HGet(key string, field string) (string, error)
- func (c *Client) HGetAll(key string) ([]string, error)
- func (c *Client) HIncrBy(key string, field string, value int) (int, error)
- func (c *Client) HIncrByFloat(key string, field string, value string) (string, error)
- func (c *Client) HKeys(key string) ([]string, error)
- func (c *Client) HLen(key string) (int, error)
- func (c *Client) HMGet(key string, fields ...string) ([]string, error)
- func (c *Client) HMSet(key string, fieldvalue ...string) (string, error)
- func (c *Client) HSet(key string, field string, value string) (int, error)
- func (c *Client) HSetNx(key string, field string, value string) (int, error)
- func (c *Client) HVals(key string) ([]string, error)
- func (c *Client) Incr(key string) (int, error)
- func (c *Client) IncrBy(key string, increment int) (int, error)
- func (c *Client) IncrByFloat(key string, increment float64) (int, error)
- func (c *Client) Keys(pattern string) ([]string, error)
- func (c *Client) Mget(keys []string) ([]string, error)
- func (c *Client) Mset(key_values map[string]string) (bool, error)
- func (c *Client) MsetNX(key_values map[string]string) (int, error)
- func (c *Client) Psetx(key string, milliseconds uint, value string) (string, error)
- func (c *Client) Publish(channel string, message string) (int, error)
- func (c *Client) SAdd(key string, member ...string) (int, error)
- func (c *Client) SCard(key string) (int, error)
- func (c *Client) SDIFFSTORE(destination string, key ...string) (int, error)
- func (c *Client) SDiff(key ...string) (int, error)
- func (c *Client) SINTER(key ...string) (int, error)
- func (c *Client) SINTERSTORE(destination string, key ...string) (int, error)
- func (c *Client) SISMEMBER(key string, member string) (int, error)
- func (c *Client) SMEMBERS(key string) (int, error)
- func (c *Client) SMOVE(source string, destination string, member string) (int, error)
- func (c *Client) SPOP(key string, count string) (int, error)
- func (c *Client) SRANDMEMBER(key string, count string) (int, error)
- func (c *Client) SREM(key string, member ...string) (int, error)
- func (c *Client) SUNION(key ...string) (int, error)
- func (c *Client) SUNIONSTORE(destination string, key ...string) (int, error)
- func (c *Client) Set(key string, value string) (string, error)
- func (c *Client) SetEX(key string, seconds int, value string) (string, error)
- func (c *Client) SetNX(key string, value string) (int, error)
- func (c *Client) SetRange(key string, offset int, value string) (int, error)
- func (c *Client) Setbit(key string, offset int, value int) (int, error)
- func (c *Client) StartPipeline()
- func (c *Client) Strlen(key string) (int, error)
- func (c *Client) Subscribe(channels ...string) (int, error, chan string)
- func (c *Client) UnSubscribe(channels ...string) (int, error)
- type Response
- type SimpleString
Constants ¶
View Source
const ( NEWLINE = "\r\n" EMPTY_STRING = "" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) AddToPipeline ¶
func (*Client) BitCountWithIndex ¶
func (*Client) BitPosWithRange ¶
func (*Client) BitPosWithStartRange ¶
func (*Client) EndPipeline ¶
func (c *Client) EndPipeline()
func (*Client) ExecPipeline ¶
func (*Client) Exists ¶
Returns if key exists The number of keys existing among the ones specified as arguments. Keys mentioned multiple times and existing are counted multiple times.
func (*Client) HIncrByFloat ¶
func (*Client) IncrByFloat ¶
func (*Client) SDIFFSTORE ¶
func (*Client) SINTERSTORE ¶
func (*Client) SUNIONSTORE ¶
func (*Client) StartPipeline ¶
func (c *Client) StartPipeline()
type SimpleString ¶
type SimpleString struct {
// contains filtered or unexported fields
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.