Anapher/Strive

View on GitHub
src/Services/ConferenceManagement/Strive.Infrastructure/KeyValue/Abstractions/IKeyValueDatabase.cs

Summary

Maintainability
A
0 mins
Test Coverage
using System.Threading;
using System.Threading.Tasks;

namespace Strive.Infrastructure.KeyValue.Abstractions
{
    public interface IKeyValueDatabase : IKeyValueDatabaseActions
    {
        IKeyValueDatabaseTransaction CreateTransaction();

        ValueTask<IAcquiredLock> AcquireLock(string lockKey, CancellationToken cancellationToken = default);
    }
}