contains method
Checks for cached data at key
.
Throws JsonCacheException to indicate operation failure.
Implementation
@override
Future<bool> contains(String key) async {
try {
return await _wrapped.contains(key);
} on Exception catch (ex, st) {
Error.throwWithStackTrace(
JsonCacheException(
extra: "Error checking for cached data at index '$key'.",
exception: ex,
),
st,
);
}
}