Versions in this module Expand all Collapse all v0 v0.4.1 Dec 14, 2023 Changes in this version + type Client struct + func NewClient(ctx context.Context, opt Options) (*Client, error) + 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 struct + Password string + Target string + TlsCert string + TlsDomain string