SimulatedObjectStore class final
In-memory object store that counts every request and byte.
Values are shared by reference (no copy on read), which is the point: the benchmark measures the engine's request shape, not a memcpy.
- Implemented types
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- objectCount → int
-
Number of stored objects.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stats → ObjectStoreStats
-
Current counters.
no setter
- storedBytes → int
-
Total stored payload bytes.
no setter
Methods
-
delete(
String key) → Future< void> -
Deletes
key. Missing keys are ignored.override -
deleteMany(
List< String> keys) → Future<void> -
Deletes several keys with one request (S3
DeleteObjects).override -
get(
String key) → Future< Uint8List?> -
Reads
key, ornullwhen absent.override -
keys(
) → List< String> - Keys currently stored, sorted.
-
list(
String prefix) → Future< List< String> > -
Lists keys starting with
prefix.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
put(
String key, Uint8List bytes) → Future< void> -
Creates or replaces
key.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited