PersistenceStore<I extends Info, E extends Entry<I> > class
abstract
A definition of a stores that persists data
- Inheritance
- Available extensions
Constructors
- PersistenceStore({StoreCodec? codec})
- Creates a PersistenceStore.
Properties
- codec → StoreCodec
-
The store codec to use
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
cache<
T> ({CacheManager? manager, String? name, dynamic fromEncodable(Map< String, dynamic> )?, KeySampler? sampler, EvictionPolicy? evictionPolicy, int? maxEntries, ExpiryPolicy? expiryPolicy, CacheLoader<T> ? cacheLoader, EventListenerMode? eventListenerMode, bool? statsEnabled, CacheStats? stats}) → Future<Cache< T> > -
Available on Store<
Creates a new Cache backed by a StoreCacheInfo, CacheEntry> , provided by the CacheExtension extension -
clear(
String name) → Future< void> -
Clears a partition
inherited
-
close(
) → Future< void> -
Closes a store
inherited
-
containsKey(
String name, String key) → Future< bool> -
Checks if the partition contains a value indexed by
key
inherited -
create(
String name, {dynamic fromEncodable(Map< String, dynamic> )?}) → Future<void> -
Creates a partition
override
-
decodeBinaryValue(
Uint8List bytes, dynamic fromEncodable(Map< String, dynamic> )?) → dynamic - Returns a value decoded from the provided binary value
-
decoder(
String name) → dynamic Function(Map< String, dynamic> )? -
Gets the partition
fromEncodable
function -
decodeValue(
dynamic value, dynamic fromEncodable(Map< String, dynamic> )?, {ValueProcessor processor = ValueProcessor.none, List<int> process(dynamic)?}) → dynamic - Returns a value decoded from the provided value
-
delete(
String name) → Future< void> -
Deletes a partition
inherited
-
deleteAll(
) → Future< void> -
Deletes all partitions
inherited
-
encodeValue(
dynamic value) → Uint8List - Encodes a value into a list of bytes
-
getEntry(
String name, String key) → Future< E?> -
Returns the partition entry specified by
key
.inherited -
getInfo(
String name, String key) → Future< I?> -
Returns the info for the specified
key
in a partition.inherited -
getInfos(
String name, Iterable< String> keys) → Future<Iterable< I?> > -
Returns a Iterable over all the non nullable infos in a partition
inherited
-
infos(
String name) → Future< Iterable< I> > -
Returns a Iterable over all the infos in the partition.
inherited
-
keys(
String name) → Future< Iterable< String> > -
Returns a Iterable over all the keys in the partition
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
putEntry(
String name, String key, E entry) → Future< void> -
Puts an entry identified by
key
on a partition. The value is overriden if already exists or added if it does not exists.inherited -
remove(
String name, String key) → Future< void> -
Removes the partition entry by
key
.inherited -
setInfo(
String name, String key, I info) → Future< void> -
Sets the partition info indexed by
key
.inherited -
size(
String name) → Future< int> -
The number of entries in the partition
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
values(
String name) → Future< Iterable< E> > -
Returns a Iterable over all entries in a partition
inherited
-
vault<
T> ({VaultManager? manager, String? name, dynamic fromEncodable(Map< String, dynamic> )?, VaultLoader<T> ? vaultLoader, EventListenerMode? eventListenerMode, bool? statsEnabled, VaultStats? stats}) → Future<Vault< T> > -
Available on Store<
Creates a new Vault backed by a StoreVaultInfo, VaultEntry> , provided by the VaultExtension extension
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited