miniProgramPackageCacheAge
This property allows the super app to configure the expiration time (maximum number of days) to keep mini program offline packages in the disk cache.
Note: Must configure this property before initializing the SDK.
Property
copy
/**
* The maximum length of time to keep an mini program package in the disk cache, in days.
* Minimum can be set to 1 day.
* Defaults to 30 days.
*/
@property (nonatomic, assign) NSUInteger miniProgramPackageCacheAge;
Name | Type | Description | Required |
miniProgramPackageCacheAge | NSUInteger | Indicates the expiration time (maximum number of days) to keep mini program offline packages in the disk cache.
| Yes |
Sample
copy
func createGriverConfiguration() -> GRVConfiguration {
let configuration = GRVConfiguration()
configuration.miniProgramPackageCacheAge = 30
return configuration
}