CacheTestContext<T extends Store<CacheInfo, CacheEntry>> class abstract

Base class for all the cache test contexts.

Inheritance

Constructors

CacheTestContext(ValueGenerator generator)
Builds a new CacheTestContext

Properties

generator ValueGenerator
A value generator
finalinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

deleteStore(T store) Future<void>
Deletes a store
inherited
newCache<V>(T store, {String? name, dynamic fromEncodable(Map<String, dynamic>)?, ExpiryPolicy? expiryPolicy, KeySampler? sampler, EvictionPolicy? evictionPolicy, int? maxEntries, CacheLoader<V>? cacheLoader, Clock? clock, EventListenerMode? eventListenerMode, bool? statsEnabled, CacheStats? stats}) Future<Cache<V>>
Creates a new cache
newEntry(int seed, {String? key, Duration? expiryDuration, DateTime? creationTime}) → CacheEntry
Creates a new CacheEntry with the provided ValueGenerator and seed
override
newStore() Future<T>
Creates a new store
inherited
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