StoreBuilder<Key, Output> class
abstract
Main entry point for creating a Store.
Constructors
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
-
build(
) → Store< Key, Output> -
cachePolicy(
MemoryPolicy< Key, Output> ? memoryPolicy) → StoreBuilder<Key, Output> - controls eviction policy for a store cache, use MemoryPolicyBuilder to configure a TTL or size based eviction Example: MemoryPolicy.builder().setExpireAfterWrite(10.seconds).build()
-
disableCache(
) → StoreBuilder< Key, Output> - by default a Store caches in memory with a default policy of max items = 100
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
from<
Key, Input, Output> (Fetcher< Key, Output> fetcher, {SourceOfTruth<Key, Input, Output> ? sourceOfTruth}) → StoreBuilder<Key, Output> -
Creates a new StoreBuilder from a Fetcher and a
SourceOfTruth
.