# Interface INpgsqlValueGeneratorCache

Namespace
  Npgsql.EntityFrameworkCore.PostgreSQL.ValueGeneration.Internal

Assembly
  Npgsql.EntityFrameworkCore.PostgreSQL.dll

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

    public interface INpgsqlValueGeneratorCache : IValueGeneratorCache

Inherited Members
  IValueGeneratorCache.GetOrAdd(IProperty, ITypeBase, Func<IProperty, ITypeBase, ValueGenerator>)

## Methods

### GetOrAddSequenceState(IProperty, IRelationalConnection)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

    NpgsqlSequenceValueGeneratorState GetOrAddSequenceState(IProperty property, IRelationalConnection connection)

#### Parameters

`property` IProperty
`connection` IRelationalConnection

#### Returns

NpgsqlSequenceValueGeneratorState