CacheMode enum

create_user: zhengzaihong email:1096877329@qq.com create_date: 2022/8/11 create_time: 9:08 describe: RxNet 请求缓存策略模式

Inheritance
Available extensions

Values

onlyRequest → const CacheMode

没有缓存

requestFailedReadCache → const CacheMode

先请求网络,如果请求网络失败,则读取缓存,如果读取缓存失败,本次请求失败

firstCacheThenRequest → const CacheMode

先使用缓存,不管是否存在,仍然请求网络

onlyCache → const CacheMode

只使用缓存

cacheNoneToRequest → const CacheMode

先使用缓存,无缓存或超过时效则请求网络

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Constants

values → const List<CacheMode>
A constant List of the values in this enum, in order of their declaration.