NewTransaction

Functionin corecompute-sdk-go v1.11.0View source
func NewTransaction(key []byte, opts LookupOptions) (*Transaction, error)

NewTransaction creates a new cache transaction for the given key.

Transactions must be closed by calling the Transaction.Close method when finished.

Keys can be up to 4096 bytes in length.

Parameters

key: []byte
opts: LookupOptions

Returns

(*Transaction, error)