Documentation
¶
Overview ¶
Package cmargin implements a client for margin-cache
Index ¶
- type Client
- func (client *Client) Append(key string, val []byte) error
- func (client *Client) Auth(password string) error
- func (client *Client) Blpop(keys []string, timeoutSecs uint) (*string, []byte, error)
- func (client *Client) Brpop(keys []string, timeoutSecs uint) (*string, []byte, error)
- func (c *Client) Close()
- func (client *Client) Dbsize() (int, error)
- func (client *Client) Decr(key string) (int64, error)
- func (client *Client) Decrby(key string, val int64) (int64, error)
- func (client *Client) Del(key string) (bool, error)
- func (client *Client) Exists(key string) (bool, error)
- func (client *Client) Expire(key string, time int64) (bool, error)
- func (client *Client) Flush(all bool) error
- func (client *Client) Get(key string) ([]byte, error)
- func (client *Client) Getset(key string, val []byte) ([]byte, error)
- func (client *Client) Hdel(key string, field string) (bool, error)
- func (client *Client) Hdestroy(key string) error
- func (client *Client) Hexists(key string, field string) (bool, error)
- func (client *Client) Hget(key string, field string) ([]byte, error)
- func (client *Client) Hgetall(key string, val interface{}) error
- func (client *Client) Hincrby(key string, field string, val int64) (int64, error)
- func (client *Client) Hkeys(key string) ([]string, error)
- func (client *Client) Hlen(key string) (int, error)
- func (client *Client) Hmget(key string, fields ...string) ([][]byte, error)
- func (client *Client) Hmset(key string, mapping interface{}) error
- func (client *Client) Hset(key string, field string, val []byte) (bool, error)
- func (client *Client) Hsetex(key string, field string, ex int, val []byte) (bool, error)
- func (client *Client) Hvals(key string) ([][]byte, error)
- func (client *Client) Incr(key string) (int64, error)
- func (client *Client) Incrby(key string, val int64) (int64, error)
- func (client *Client) Keys(pattern string) ([]string, error)
- func (client *Client) Lindex(key string, index int) ([]byte, error)
- func (client *Client) Llen(key string) (int, error)
- func (client *Client) Lpop(key string) ([]byte, error)
- func (client *Client) Lpush(key string, val []byte) error
- func (client *Client) Lrange(key string, start int, end int) ([][]byte, error)
- func (client *Client) Lrem(key string, count int, value []byte) (int, error)
- func (client *Client) Lset(key string, index int, value []byte) error
- func (client *Client) Ltrim(key string, start int, end int) error
- func (client *Client) Mget(keys ...string) ([][]byte, error)
- func (client *Client) Move(key string, dbnum int) (bool, error)
- func (client *Client) Mset(mapping map[string][]byte) error
- func (client *Client) Msetnx(mapping map[string][]byte) (bool, error)
- func (client *Client) Ping() (int64, error)
- func (client *Client) Randomkey() (string, error)
- func (client *Client) Rename(src string, dst string) error
- func (client *Client) Renamenx(src string, dst string) (bool, error)
- func (client *Client) Rpop(key string) ([]byte, error)
- func (client *Client) Rpoplpush(src string, dst string) ([]byte, error)
- func (client *Client) Rpush(key string, val []byte) error
- func (client *Client) Sadd(key string, value []byte) (bool, error)
- func (client *Client) Scard(key string) (int, error)
- func (client *Client) Sdiff(key1 string, keys []string) ([][]byte, error)
- func (client *Client) Sdiffstore(dst string, key1 string, keys []string) (int, error)
- func (client *Client) Set(key string, val []byte) error
- func (client *Client) Setex(key string, time int64, val []byte) error
- func (client *Client) Setnx(key string, val []byte) (bool, error)
- func (client *Client) Sinter(keys ...string) ([][]byte, error)
- func (client *Client) Sinterstore(dst string, keys ...string) (int, error)
- func (client *Client) Sismember(key string, value []byte) (bool, error)
- func (client *Client) Smembers(key string) ([][]byte, error)
- func (client *Client) Smove(src string, dst string, val []byte) (bool, error)
- func (client *Client) Spop(key string) ([]byte, error)
- func (client *Client) Srandmember(key string) ([]byte, error)
- func (client *Client) Srem(key string, value []byte) (bool, error)
- func (client *Client) Strlen(key string) (int, error)
- func (client *Client) Substr(key string, start int, end int) ([]byte, error)
- func (client *Client) Sunion(keys ...string) ([][]byte, error)
- func (client *Client) Sunionstore(dst string, keys ...string) (int, error)
- func (client *Client) Ttl(key string) (int64, error)
- func (client *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 int Password string MaxPoolSize int // contains filtered or unexported fields }
Client defines fields of client
func (*Client) Sdiffstore ¶
func (*Client) Sinterstore ¶
func (*Client) Sunionstore ¶
Click to show internal directories.
Click to hide internal directories.