LCIMCachePolicy
Objective-C
enum LCIMCachePolicy : NSUInteger {}
Swift
enum LCIMCachePolicy : UInt, @unchecked Sendable
Cache policy
-
Query from server and do not save result to local cache.
Declaration
Objective-C
kLCIMCachePolicyIgnoreCache = 0
Swift
case ignoreCache = 0
-
Only query from local cache.
Declaration
Objective-C
kLCIMCachePolicyCacheOnly = 1
Swift
case cacheOnly = 1
-
Only query from server, and save result to local cache.
Declaration
Objective-C
kLCIMCachePolicyNetworkOnly = 2
Swift
case networkOnly = 2
-
Firstly query from local cache, if fails, query from server.
Declaration
Objective-C
kLCIMCachePolicyCacheElseNetwork = 3
Swift
case cacheElseNetwork = 3
-
Firstly query from server, if fails, query local cache.
Declaration
Objective-C
kLCIMCachePolicyNetworkElseCache = 4
Swift
case networkElseCache = 4
-
Firstly query from local cache, then query from server. The callback will be called twice.
Declaration
Objective-C
kLCIMCachePolicyCacheThenNetwork = 5
Swift
case cacheThenNetwork = 5