Documentation ¶
Index ¶
- Constants
- type Client
- func (c *Client) CAS(ctx context.Context, key string, ...) error
- func (c *Client) Delete(ctx context.Context, key string) error
- func (c *Client) Get(ctx context.Context, key string) (interface{}, error)
- func (c *Client) LastUpdateTime(key string) time.Time
- func (c *Client) List(ctx context.Context, key string) ([]string, error)
- func (c *Client) WatchKey(ctx context.Context, key string, f func(interface{}) bool)
- func (c *Client) WatchPrefix(ctx context.Context, prefix string, f func(string, interface{}) bool)
- type Config
Constants ¶
View Source
const ( // DdbBatchSizeLimit Current limit of 25 actions per batch // https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_BatchWriteItem.html DdbBatchSizeLimit = 25 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(cfg Config, cc codec.Codec, logger log.Logger, registerer prometheus.Registerer) (*Client, error)
Click to show internal directories.
Click to hide internal directories.