Documentation ¶
Index ¶
- func Del(key string) error
- func Get(key string) string
- func GetArray(key string) (data []string)
- func GetMap(key string) (data map[string]string)
- func Init(cfg Config)
- func Set(key, val string, ttl int64) (err error)
- func SetWithKeepAlive(key, val string, ttl int64) (err error)
- func Watch(key string, fn func(arr []string))
- type Client
- func (cli *Client) Del(key string) (err error)
- func (cli *Client) Get(key string) string
- func (cli *Client) GetArray(key string) (data []string)
- func (cli *Client) GetMap(key string) (data map[string]string)
- func (cli *Client) Set(key, val string, ttl int64) (err error)
- func (cli *Client) SetWithKeepAlive(key, val string, ttl int64) (err error)
- func (cli *Client) Watch(key string, fn func([]string))
- type Config
- type TLS
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetWithKeepAlive ¶
Types ¶
type Client ¶
func (*Client) SetWithKeepAlive ¶
Click to show internal directories.
Click to hide internal directories.