ApiCache class
Connection-scoped, session-partitioned L1 memory + L2 Hive cache.
Properties
- activeSessionId → String
-
no setter
- config → ApiCacheConfig
-
final
- connectionKey → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clearActiveSession(
) → Future< void> -
clearAll(
) → Future< void> -
clearSession(
String sessionId) → Future< void> -
invalidate(
String originalKey) → Future< void> -
invalidateTags(
Iterable< String> tags) → Future<void> -
invalidateWhere(
String pattern) → Future< void> -
keyFor(
{required String method, required String path, String query = '', Map< String, String> varyHeaders = const <String, String>{}, String? operationId}) → String -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
read(
String originalKey, {bool allowStale = false}) → Future< ApiCacheRead?> -
startSession(
{required String sessionId, Map< String, Object?> metadata = const <String, Object?>{}, bool? clearPreviousOnChange}) → Future<void> -
toString(
) → String -
A string representation of this object.
inherited
-
write(
String originalKey, dynamic data, {required Duration ttl, Iterable< String> tags = const <String>[]}) → Future<void>
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited