DioCacheManager class

Constructors

DioCacheManager(CacheConfig config)

Properties

hashCode int
The hash code for this object.
no setterinherited
interceptor → dynamic
interceptor for http cache.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clearAll() Future<bool>
empty local cache.
clearExpired() Future<bool>
clear all expired cache.
delete(String primaryKey, {String? requestMethod, String? subKey}) Future<bool>
delete local cache by primaryKey and optional subKey
deleteByPrimaryKey(String path, {String? requestMethod}) Future<bool>
deleteByPrimaryKeyAndSubKey(String path, {String? requestMethod, Map<String, dynamic>? queryParameters, String? subKey, dynamic data}) Future<bool>
deleteByPrimaryKeyAndSubKeyWithUri(Uri uri, {String? requestMethod, String? subKey, dynamic data}) Future<bool>
delete local cache when both primaryKey and subKey matched.
deleteByPrimaryKeyWithUri(Uri uri, {String? requestMethod}) Future<bool>
no matter what subKey is, delete local cache if primary matched.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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