Documentation ¶
Index ¶
- type Client
- func (c *Client) Close() error
- func (c *Client) Del(ctx context.Context, key []byte) (bool, error)
- func (c *Client) DelInBatch(ctx context.Context, keys [][]byte, batchSize int64) (int64, error)
- func (c *Client) Exp(ctx context.Context, key []byte, ttl time.Duration) (bool, error)
- func (c *Client) Get(ctx context.Context, key []byte) ([]byte, error)
- func (c *Client) Put(ctx context.Context, key []byte, value []byte, ttl time.Duration) (bool, error)
- func (c *Client) PutInBatch(ctx context.Context, rs []*riverpb.Record, batchSize int64) (int64, error)
- func (c *Client) Range(ctx context.Context, option *riverpb.RangeOption) ([]riverdb.Key, error)
- func (c *Client) Stat(ctx context.Context) (*riverdb.Stats, error)
- func (c *Client) TTL(ctx context.Context, key []byte) (time.Duration, error)
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.