Workspace 6.21.5
MeshModelDiskCache

The MeshModelDiskCache operation is used to cache MeshModelInterface data, allowing downstream processing to occur without reloading data from sources. The cache has a fixed item limit, which if exceeded will cause the cache to write the least recently used item to disk. Optionally, the cache can be persistent, allowing data to be stored between sessions. Mesh data is serialized using the Workspace Binary Mesh (wbm) format.

  • Default label: "Mesh model disk cache"
  • Member of plug-in: Mesh
  • Catalogue path: Mesh
Inputs:
Clear cacheCSIRO::DataExecution::DependencyWhen triggered, clears the cache contents (including serialized data).
Data locationQStringWhere, on disk, to write serialized mesh data when the cache limit is exceeded.
PersistantboolIf enabled, Workspace will not clean up the target location when the operation is deleted, or when the workspace is closed.
Item limitintThe maximum number of items that can be stored in-memory in the cache. Once this limit is exceeded, the least-recently used item in the cache will be written to disk. When this item is needed again, it will be returned from the cache.
KeyQStringThe key associated with the Mesh model being added to the cache / retrieved from the cache.
Mesh modelCSIRO::Mesh::MeshModelInterface

The mesh model to add to the cache. NOTE: If an item already exists in the cache with the same key, this input will NOT be brought up-to-date.

Outputs:
Mesh modelCSIRO::Mesh::MeshModelInterface