Documentation ¶
Index ¶
- func Create(dynamodbClient dynamodbiface.DynamoDBAPI, tableName string, ...) wfcache.StorageMaker
- type DynamoDbStorage
- func (s *DynamoDbStorage) BatchGet(keys []string) (results []*wfcache.Metadata)
- func (s *DynamoDbStorage) BatchSet(pairs map[string][]byte) error
- func (s *DynamoDbStorage) Del(key string) error
- func (s *DynamoDbStorage) Get(key string) *wfcache.Metadata
- func (s *DynamoDbStorage) Set(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(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."
func (*DynamoDbStorage) BatchSet ¶
func (s *DynamoDbStorage) BatchSet(pairs map[string][]byte) error
func (*DynamoDbStorage) Del ¶
func (s *DynamoDbStorage) Del(key string) error
Click to show internal directories.
Click to hide internal directories.