InMemoryKeyValueStore class

In-memory KeyValueStore for tests (and consumers' tests).

Implemented types

Constructors

InMemoryKeyValueStore()

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

getHistory(String key) → Future<List<int>>
Reads an int list (e.g. impression timestamps), empty if absent.
override
getInt(String key) → Future<int?>
Reads an int, or null if absent.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setHistory(String key, List<int> values) → Future<void>
Replaces an int list.
override
setInt(String key, int value) → Future<void>
Writes an int.
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited