PersistenceProvider class abstract
Abstract interface for encrypted data persistence operations.
Implementations should provide secure storage for encrypted cache data with efficient querying and batch operations.
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
- supportsEncryptionKeyRotation → bool
-
no setter
Methods
-
clear(
) → Future< void> - Clears all persisted data.
-
dispose(
) → Future< void> -
exists(
String key) → Future< bool> - Checks if data exists for a key.
-
getAllKeys(
) → Future< List< String> > - Gets all persisted keys.
-
initialize(
) → Future< void> - Initializes the persistence provider.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
persist(
String key, List< int> encryptedData, {DateTime? createdAt, DateTime? expiresAt}) → Future<void> - Persists encrypted data for a key.
-
persistMultiple(
Map< String, List< entries, {Map<int> >String, DateTime?> ? createdAt, Map<String, DateTime?> ? expiresAt}) → Future<void> - Persists multiple encrypted data entries efficiently.
-
remove(
String key) → Future< void> - Removes persisted data for a key.
-
removeMultiple(
List< String> keys) → Future<void> - Removes multiple keys efficiently.
-
retrieve(
String key) → Future< List< int> ?> - Retrieves encrypted data for a key.
-
retrieveMultiple(
List< String> keys) → Future<Map< String, List< >int> > - Retrieves multiple encrypted data entries efficiently.
-
rotateEncryptionKey(
String oldKey, String newKey, EncryptionProvider encryptionProvider, {void onProgress(int current, int total)?}) → Future< void> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited