SqliteCacheStore class Null safety

Sqlite based implemention of a Cache Store

Inheritance
Implemented types
Available Extensions

Constructors

SqliteCacheStore(SqliteAdapter<CacheInfo, CacheEntry> adapter, {StoreCodec? codec})
Builds a SqliteCacheStore.

Properties

codec StoreCodec
The store codec to use
@protectedfinalinherited
hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

clear(String name) Future<void>
Clears a partition
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
inherited
decoder(String name) → (dynamic Function?(Map<String, dynamic>)?)
Gets the partition fromEncodable function
@protectedinherited
decodeValue(dynamic value, dynamic fromEncodable(Map<String, dynamic>)?, {dynamic mapFn(dynamic)?, dynamic defaultFn()?}) → dynamic
Decodes a value
@protectedinherited
delete(String name) Future<void>
Deletes a partition
inherited
deleteAll() Future<void>
Deletes all partitions
inherited
getEntry(String name, String key) Future<CacheEntry?>
Returns the partition entry specified by key.
inherited
getInfo(String name, String key) Future<CacheInfo>
Returns the info for the specified key in a partition.
inherited
getInfos(String name, Iterable<String> keys) Future<Iterable<CacheInfo>>
Returns a Iterable over all the non nullable infos in a partition
inherited
infos(String name) Future<Iterable<CacheInfo>>
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 non-existent method or property is accessed.
inherited
putEntry(String name, String key, CacheEntry 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, CacheInfo 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<CacheEntry>>
Returns a Iterable over all entries in a partition
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited