CacheContentController<T extends CacheAble> class
abstract
Your contents only save session cache
Constructors
Properties
-
contents
→ Map<
String, T> -
Your stored/cached contents
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxCount → int
-
Maximum storage/cache count
no setterinherited
- maxDuration → Duration
-
Maximum storage/cache duration
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
contentGetter(
String identifier) → Future< T?> -
Content getter from your source (database)
inherited
-
getContent(
String identifier) → Future< T?> -
Get content by identifier
inherited
-
isThere(
String identifier) → bool -
Is content exists
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
remove(
String identifier) → Future< void> -
Remove content from storage/cache
inherited
-
save(
T content) → Future< void> -
Save content in storage/cache
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
update(
String identifier, {bool checkAfterUpdate = true}) → Future< void> -
Update content from your source
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited