load method
Loads the value associated with the given key.
Returns null if no value exists for the key.
Returns the serialized string if a value exists.
Throws an exception if the load operation fails.
Implementation
@override
Future<String?> load(String key) async {
loadCount++;
if (loadDelay != null) await Future<void>.delayed(loadDelay!);
if (loadError != null) throw loadError!;
return _data[key];
}