CacheManager class
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getCache(
String cacheKey) → Future< HttpCacheObj?> ? - 获取缓存
-
getCacheKey(
String? customCacheKey, RequestOptions? options) → String? - 获取缓存Key,customCacheKey和options必须有一个不为空,否则返回null
-
getCacheKeyWithReq(
RequestOptions options) → String? - 根据请求参数缓存缓存Key
-
getCacheWithReq(
RequestOptions options) → Future< HttpCacheObj?> ? - 根据请求获取缓存
-
init(
) → Future< bool> -
isAppCache(
) → bool - 是否是APP缓存
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
putCacheWithResp(
Response response, int defaultCacheTime) → Future< void> - 根据返回结果保存缓存
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited