Documentation ¶
Index ¶
- type Client
- func (c *Client) Append(key string, value string) error
- func (c *Client) Decr(key string) error
- func (c *Client) DecrBy(key string, amount int64) error
- func (c *Client) Del(key string) error
- func (c *Client) Exists(key string) (bool, error)
- func (c *Client) Expire(key string, ttl int64) error
- func (c *Client) Get(key string) (interface{}, error)
- func (c *Client) GetSet(key string, value interface{}) (interface{}, error)
- func (c *Client) HDecrBy(key, field string, value int64) (int64, error)
- func (c *Client) HDel(key, field string) error
- func (c *Client) HExists(key, field string) (bool, error)
- func (c *Client) HGet(key, field string) (interface{}, error)
- func (c *Client) HIncrBy(key, field string, value int64) (int64, error)
- func (c *Client) HIncrByFloat(key, field string, value float64) (float64, error)
- func (c *Client) HLen(key string) (int64, error)
- func (c *Client) HMove(key, dest, field string) error
- func (c *Client) HSet(key, field string, value interface{}) error
- func (c *Client) HSetNX(key, field string, value interface{}) error
- func (c *Client) HStrLen(key, field string) (int64, error)
- func (c *Client) HType(key, field string) (string, error)
- func (c *Client) HUpdate(key, field string, value interface{}) error
- func (c *Client) Incr(key string) error
- func (c *Client) IncrBy(key string, amount int64) error
- func (c *Client) IncrByFloat(key string, amount float64) error
- func (c *Client) LIndex(key string, index int) (interface{}, error)
- func (c *Client) LLen(key string) (int32, error)
- func (c *Client) LPop(key string) (interface{}, error)
- func (c *Client) LPush(key string, value interface{}) error
- func (c *Client) LPushs(key string, values []interface{}) error
- func (c *Client) LRange(key string, start, stop int) ([]interface{}, error)
- func (c *Client) LRem(key string, count int32, value interface{}) error
- func (c *Client) LSet(key string, index int, value interface{}) error
- func (c *Client) LTrim(key string, start, stop int) error
- func (c *Client) MGet(keys []string) ([]interface{}, error)
- func (c *Client) MSet(pairs ...interface{}) error
- func (c *Client) MSetNX(pairs ...interface{}) error
- func (c *Client) Persist(key string) error
- func (c *Client) Put(key string, value interface{}) error
- func (c *Client) RPop(key string) (interface{}, error)
- func (c *Client) RPush(key string, value interface{}) error
- func (c *Client) RPushs(key string, values []interface{}) error
- func (c *Client) SAdd(key, member string) error
- func (c *Client) SAdds(key string, members []string) error
- func (c *Client) SCard(key string) (int32, error)
- func (c *Client) SDiff(keys []string) ([]string, error)
- func (c *Client) SInter(keys []string) ([]string, error)
- func (c *Client) SInterStore(destinationKey string, keys []string) error
- func (c *Client) SIsMember(key, member string) (bool, error)
- func (c *Client) SMembers(key string) ([]string, error)
- func (c *Client) SRem(key, member string) error
- func (c *Client) SRems(key string, members []string) error
- func (c *Client) SUnion(keys []string) ([]string, error)
- func (c *Client) SUnionStore(destination string, keys []string) error
- func (c *Client) StrLen(key string) (int32, error)
- func (c *Client) Type(key string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
Addr string // db server address
}
Client is a grpc client
func (*Client) HIncrByFloat ¶ added in v1.0.9
func (*Client) IncrByFloat ¶ added in v1.0.9
func (*Client) SInterStore ¶ added in v1.0.13
func (*Client) SUnionStore ¶ added in v1.0.13
Click to show internal directories.
Click to hide internal directories.