MiniProgramCacheBundle.webPersistent constructor
MiniProgramCacheBundle.webPersistent({
- String runtimeCacheKeyPrefix = 'mini_program_runtime_cache',
Implementation
factory MiniProgramCacheBundle.webPersistent({
String runtimeCacheKeyPrefix = 'mini_program_runtime_cache',
}) {
return MiniProgramCacheBundle(
manifestCache: InMemoryManifestCache(),
screenCache: InMemoryScreenCache(),
assetCache: NoOpAssetCache.shared,
runtimeCache: MiniProgramCacheManager(
store: SharedPreferencesMiniProgramCacheStore(
keyPrefix: runtimeCacheKeyPrefix,
),
),
);
}