dynamodb

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 4, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(dynamodbClient dynamodbiface.DynamoDBAPI, tableName string, 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.CacheItem)

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(ctx context.Context, pairs map[string][]byte) error

func (*DynamoDbStorage) Del

func (s *DynamoDbStorage) Del(ctx context.Context, key string) error

func (*DynamoDbStorage) Get

func (*DynamoDbStorage) Set

func (s *DynamoDbStorage) Set(ctx context.Context, key string, data []byte) error

func (*DynamoDbStorage) TimeToLive added in v0.2.0

func (s *DynamoDbStorage) TimeToLive() time.Duration

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL