method

Store.LockUploadObjects

func (backend *Store) LockUploadObjects( ctx context.Context, objectKeys []string, ) (func(), error)

LockUploadObjects serializes upload admission and cleanup across every process sharing a file database. SQLite memory databases are private to one Store and use the equivalent in-process gate.

Source adapters/sqlite/support.go:216

@param ctx
The ctx value.
@param objectKeys
The objectKeys value.
@returns
The declared result.

Related types

  • Store

    A SQLite implementation of Ridu’s document, snapshot, auth, preference, task, lock, version, and migration store contracts.