Documentation ¶
Overview ¶
Package dydbassoc implements an assoc.Assoc based on AWS's DynamoDB.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Assoc ¶
Assoc implements a DynamoDB-backed Assoc for use in caches. Each association entry is represented by a DynamoDB item with the attributes "ID" and "Value".
TODO(marius): support batch querying in this interface; it will be more efficient than relying on call concurrency.
func (*Assoc) Get ¶
func (a *Assoc) Get(ctx context.Context, kind assoc.Kind, k digest.Digest) (digest.Digest, digest.Digest, error)
Lookup returns the digest associated with key digest k. Lookup returns an error flagged errors.NotExist when no such mapping exists. Lookup also modifies the item's last-accessed time, which can be used for LRU object garbage collection.
Get expands abbreviated keys by making use of a DynamoDB index.