Documentation
¶
Index ¶
- Constants
- type Cfg
- type Client
- func (cli *Client) DecrInt(key string) (err error)
- func (cli *Client) GetDict(key string) (result raphanuscommon.DictValue, err error)
- func (cli *Client) GetDictItem(key string, dkey string) (result string, err error)
- func (cli *Client) GetInt(key string) (int64, error)
- func (cli *Client) GetList(key string) (result raphanuscommon.ListValue, err error)
- func (cli *Client) GetListItem(key string, idx int) (result string, err error)
- func (cli *Client) GetStr(key string) (string, error)
- func (cli *Client) IncrInt(key string) (err error)
- func (cli *Client) Keys() (result []string, err error)
- func (cli *Client) Length() (int, error)
- func (cli *Client) Remove(key string) (err error)
- func (cli *Client) RemoveDictItem(key string, dkey string) (err error)
- func (cli *Client) SetDict(key string, value raphanuscommon.DictValue, ttl int) (err error)
- func (cli *Client) SetDictItem(key string, dkey string, value string) (err error)
- func (cli *Client) SetInt(key string, value int64, ttl int) (err error)
- func (cli *Client) SetList(key string, value raphanuscommon.ListValue, ttl int) (err error)
- func (cli *Client) SetListItem(key string, idx int, value string) (err error)
- func (cli *Client) SetStr(key string, value string, ttl int) (err error)
- func (cli *Client) Stat() (result raphanuscommon.Stat, err error)
- func (cli *Client) UpdateDict(key string, value raphanuscommon.DictValue) (err error)
- func (cli *Client) UpdateInt(key string, value int64) (err error)
- func (cli *Client) UpdateList(key string, value raphanuscommon.ListValue) (err error)
- func (cli *Client) UpdateStr(key string, value string) (err error)
Constants ¶
View Source
const (
// APIVersion - prefix for path in URL
APIVersion = "/v1"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client - client object
func (*Client) GetDictItem ¶
GetDictItem - get item form dict value by key and dict key
func (*Client) GetListItem ¶
GetListItem - get item in list value by key and index
func (*Client) RemoveDictItem ¶
RemoveDictItem - remove one item from dict value by key and dict key
func (*Client) SetDictItem ¶
SetDictItem - set item in dict value by key and dict key
func (*Client) SetListItem ¶
SetListItem - set item in list value by key and index
func (*Client) UpdateDict ¶
UpdateDict - update dict value by key
func (*Client) UpdateList ¶
UpdateList - update list value by key
Click to show internal directories.
Click to hide internal directories.