MiniProgramCacheBundle.webPersistent constructor

MiniProgramCacheBundle.webPersistent({
  1. 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,
      ),
    ),
  );
}