Documentation ¶
Index ¶
- func ConvertToStruct(v, out interface{}) error
- func ToMap(s interface{}) (map[string]interface{}, error)
- func ToStruct(data interface{}, v interface{}) error
- type Client
- func (c *Client) Close() error
- func (c *Client) Delete(key string) error
- func (c *Client) Expire(key string, expiration time.Duration) (bool, error)
- func (c *Client) Get(key string) (string, error)
- func (c *Client) HDel(key string, field string) error
- func (c *Client) HGetAll(key string) (map[string]string, error)
- func (c *Client) HGetAllWithStruct(key string, value interface{}) error
- func (c *Client) HMGet(key string, fields ...string) ([]interface{}, error)
- func (c *Client) HMSet(key string, value interface{}) error
- func (c *Client) HMSetWithExpire(key string, expire time.Duration, value interface{}) error
- func (c *Client) Open() error
- func (c *Client) SAdd(key string, members ...interface{}) error
- func (c *Client) SAddWithExpire(key string, expire time.Duration, members ...interface{}) error
- func (c *Client) SMembers(key string) ([]string, error)
- func (c *Client) Set(key string, val interface{}, expiration time.Duration) error
- func (c *Client) SetNX(key string, val interface{}, expiration time.Duration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertToStruct ¶
func ConvertToStruct(v, out interface{}) error
Types ¶
type Client ¶
type Client struct { Address string Password string DialTimeout int ReadTimeout int WriteTimeout int PoolSize int // contains filtered or unexported fields }
func (*Client) HGetAllWithStruct ¶
func (*Client) HMSetWithExpire ¶
func (*Client) SAddWithExpire ¶
Click to show internal directories.
Click to hide internal directories.