hive_cache library

Classes

CachedBuilder<T>
CachedFetchStreamData<T>
CacheSnapshot<T>
Collection<E extends Entity<E>>
CollectionBuilder<E extends Entity<E>>
Connection<E extends Entity<E>>
ConnectionBuilder<E extends Entity<E>>
Data<D>
Entity<E extends Entity<E>>
An object in the business logic, like a Course or a User.
EntityBuilder<E extends Entity<E>>
EntityListBuilder<E extends Entity<E>>
Existing<T>
Wrapper around a value of type T which may be null.
FetchStreamData<T>
HiveCacheImpl
Id<E extends Entity<E>>
An Id that identifies an Entity among all other Entitys, even of different types.
ScopedBuilder<T>
StreamAndData<T, D>

Extensions

CachedFetchStream
A broadcast Stream that wraps a FetchStream by saving and loading the data to/from a cache using a SaveToCache and a LoadToCache function. Only actually calls fetch on the original FetchStream if necessary.
FetchStream
A broadcast Stream that takes a Function as an argument that gets executed when whenever fetch gets called. The result is broadcasted to the listeners. The fetch function is never executed multiple times simultaneously.
LoadableId
ResolvedConnection
ResolvedId
ResolvedIdCollection
ResolvedIdList
ResolvedIdListStream
ResolvedIdStream
SaveableEntities
SaveableEntity
StringListToId
StringToId

Constants

typeIdForId → const int
200
typeIdForIdCollection → const int
201
typeIdForIdConnection → const int
202

Properties

HiveCache HiveCacheImpl
final

Typedefs

FetchableBuilder<T>(BuildContext, T, FetchCallback fetch) Widget
FetchById<E extends Entity<E>>(Id<E> id) Future<E>
FetchCallback({bool force}) Future<void>
Fetcher<T>() FutureOr<T>
LoadFromCache<T>() Stream<T>
RawBuilder<T>(BuildContext, StreamAndData<T, CachedFetchStreamData>) Widget
SaveToCache<T>(T) → void