Mini App Document Mini App Document
  • Start
  • Configuration
  • Framework
  • Custom Components
  • Basic ability
  • Configuration
  • Interface
  • FXML syntax
  • FXS syntax
API
Components
IDE
  • Developer
  • Operator
  • Start
  • Configuration
  • Framework
  • Custom Components
  • Basic ability
  • Configuration
  • Interface
  • FXML syntax
  • FXS syntax
API
Components
IDE
  • Developer
  • Operator
  • Start

  • Configuration

  • MiniApp Framework

  • Custom component
  • Basic ability

    • Storage
      • 1. Quarantine policy
        • 1.1 Plugin isolation policy
      • 2. Cleanup policy
    • File system
    • Subpackage loading
    • Canvas
    • Custom tabBar
  • Guide
  • Basic ability
2022-08-05
Directory

Storage

Each Mini App can have its own local cache, which can be read, written and cleaned up through 'ft.setStorage', 'ft.getStorage', 'ft.clearStorage', 'ft.removeStorage'.

# 1. Quarantine policy

Storage is isolated in user dimensions, and on the same device, user A cannot read the data of user B; Different Mini Apps cannot read or write data to each other.

# 1.1 Plugin isolation policy

The same Mini App uses different plug-ins: between different plug-ins, plug-ins and Mini Apps do not communicate with each other. Different Mini Apps use the same plugin: the same plugin storage does not communicate with each other.

# 2. Cleanup policy

The local cache is cleaned up at the same time as the code package, and the local cache is only cleaned up when the code package is cleaned.

Last update: 2022/08/11, 21:21:29
Custom component
File system

← Custom component File system→

Copyright © 2020-2024 Neuxnet
  • Follow System
  • Light Mode
  • Dark Mode
  • Reading Mode