DatabaseService class abstract
An interface for a database service used to cache generated code.
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
createCustomEntry(
String key, String entry) → Future< void> -
Creates custom
entry
underkey
. -
createEntry(
String digest, String cachedFilePath) → Future< void> - Creates an entry for the given digest and cached file path.
-
createEntryForBulk(
Map< String, String> cachedFilePaths) → Future<void> - Creates entries for the given cached file paths in bulk.
-
flush(
) → Future< void> - Flushes the database service. Flushing to disk, or closing network connections could be done here.
-
getAllData(
) → Future< Map< String, String> > -
getCachedFilePath(
String digest) → FutureOr< String> - Gets the cached file path for the given digest.
-
getCachedFilePathForBulk(
Iterable< String> digests) → FutureOr<Map< String, String> > - Gets the cached file path for the given digests in bulk.
-
getEntryByKey(
String key) → Future< String?> - Gets entry by key.
-
init(
) → Future< void> - Initializes the database service.
-
isMappingAvailable(
String digest) → FutureOr< bool> - Checks if the mapping is available for the given digest.
-
isMappingAvailableForBulk(
Iterable< String> digests) → FutureOr<Map< String, bool> > - Checks if the mapping is available for the given digests in bulk.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
prune(
{required List< String> keysToKeep}) → Future<void> -
Delete all records except
keysToKeep
. -
toString(
) → String -
A string representation of this object.
inherited
-
transaction<
T> (Transaction< T> transactionCallback) → Future<T>
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited