Workspace 6.21.5
|
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.
Inputs: | |||
---|---|---|---|
Clear cache | CSIRO::DataExecution::Dependency | When triggered, clears the cache contents (including serialized data). | |
Data location | QString | Where, on disk, to write serialized mesh data when the cache limit is exceeded. | |
Persistant | bool | If enabled, Workspace will not clean up the target location when the operation is deleted, or when the workspace is closed. | |
Item limit | int | The 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. | |
Key | QString | The key associated with the Mesh model being added to the cache / retrieved from the cache. | |
Mesh model | CSIRO::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 model | CSIRO::Mesh::MeshModelInterface |