Documentation ¶
Index ¶
- func Create(dynamodbClient dynamodbiface.DynamoDBAPI, tableName string, ...) wfcache.StorageMaker
- type DynamoDbStorage
- func (s *DynamoDbStorage) BatchGet(ctx context.Context, keys []string) (results []*wfcache.Metadata)
- func (s *DynamoDbStorage) BatchSet(ctx context.Context, pairs map[string][]byte) error
- func (s *DynamoDbStorage) Del(ctx context.Context, key string) error
- func (s *DynamoDbStorage) Get(ctx context.Context, key string) *wfcache.Metadata
- func (s *DynamoDbStorage) Set(ctx context.Context, key string, data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶
func Create(dynamodbClient dynamodbiface.DynamoDBAPI, tableName string, readCapacityUnits int64, writeCapacityUnits int64, ttl time.Duration) wfcache.StorageMaker
Types ¶
type DynamoDbStorage ¶
type DynamoDbStorage struct {
// contains filtered or unexported fields
}
func (*DynamoDbStorage) BatchGet ¶
func (s *DynamoDbStorage) BatchGet(ctx context.Context, keys []string) (results []*wfcache.Metadata)
If you request more than 100 items, BatchGetItem returns a ValidationException with the message "Too many items requested for the BatchGetItem call."
Click to show internal directories.
Click to hide internal directories.