PostgresRevokeStore class
PostgreSQL-backed implementation of RevokeStore.
Properties
Methods
-
close(
) → Future< void> - Disposes underlying resources.
-
list(
String ns) → Future< List< RevokeEntry> > -
Lists revoke entries for the given
namespace. Implementations should include expired entries; callers can run pruneExpired to clean them up. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pruneExpired(
String ns, DateTime clock) → Future< int> - Removes expired entries and returns the number of records purged.
-
toString(
) → String -
A string representation of this object.
inherited
-
upsertAll(
List< RevokeEntry> entries) → Future<List< RevokeEntry> > -
Persists or updates the provided revoke
entries.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
connect(
String uri, {String schema = 'public', String namespace = 'stem', String? applicationName, TlsConfig? tls}) → Future< PostgresRevokeStore> - Connects to PostgreSQL and returns a revoke store instance.
-
fromDataSource(
DataSource dataSource, {String namespace = 'stem', bool runMigrations = true}) → Future< PostgresRevokeStore> -
Creates a revoke store using an existing
DataSource.