Documentation ¶
Index ¶
- Variables
- type Client
- func (p *Client) Close() error
- func (p *Client) Del(key string) error
- func (p *Client) Exist(key string) (bool, error)
- func (p *Client) Get(key string) ([]byte, error)
- func (p *Client) GetJson(key string, j interface{}) error
- func (p *Client) GetPb(key string, j proto.Message) error
- func (p *Client) GetWithVersion(key string) ([]byte, int64, error)
- func (p *Client) ListPrefix(key string) ([]string, error)
- func (p *Client) Prefix(key string) (map[string][]byte, error)
- func (p *Client) Set(key string, val interface{}) error
- func (p *Client) SetEx(key string, val interface{}, timeout time.Duration) error
- func (p *Client) SetPb(key string, val proto.Message) error
- func (p *Client) SetPbVersion(key string, val proto.Message, version int64) (bool, error)
- func (p *Client) SetWithLock(key string, val interface{}) error
- func (p *Client) SetWithVersion(key string, val interface{}, version int64) (bool, error)
- func (p *Client) Watch(key string, logic func(event *Event))
- func (p *Client) WatchPrefix(key string, logic func(event *Event))
- func (p *Client) WhenLocked(key string, logic func(client *Client, key string) error) error
- type Config
- type Event
- type EventType
- type Mutex
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotFound = errors.New("key not found")
)
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func ConnectWithLazy ¶
func (*Client) SetPbVersion ¶
func (*Client) SetWithLock ¶
func (*Client) SetWithVersion ¶
func (*Client) WatchPrefix ¶
type Mutex ¶
type Mutex struct {
// contains filtered or unexported fields
}
func (*Mutex) WhenLocked ¶
Click to show internal directories.
Click to hide internal directories.