EntityCache class abstract
A cache for storing entities.
Constructors
- EntityCache()
-
factory
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
-
clear(
) → void - Clears the whole cache.
-
fetch<
T extends Entity> (String? otype, String? oid) → T? -
Gets the entity of the given
otype
andoid
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
put<
T extends Entity> (T entity) → T - Caches an entity.
-
remove(
String? otype, String? oid) → Entity? - Remove the cache of an entity.
-
removeWhere(
bool test(String oid, Entity entity)) → void -
Remove the cached entities that satisfy the given
test
. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited