Sie verfolgen jetzt diese Einreichung
- Aktualisierungen können Sie in Ihrem Feed verfolgter Inhalte sehen.
- Je nach Ihren Kommunikationseinstellungen können Sie auch E-Mails erhalten.
disk_cache.m
memory_cache.m
If you have a large structure, like
ds.bigArray = rand(10000)
ds.axesNames = { 'a' 'b' 'c' };
You can store it permanently to disk:
cacheId = { 'bigArray', 'version', 1 };
disk_cache('set', ds, cacheId);
It can later be retrieved by
ds = disk_cache('get', cacheId);
Advantages over using .mat files:
* indexing with arbitrary keys
* automatic detection of outdated data using outdatedKey option
* stored in one central location
Similar things can be done in-memory using memory_cache.m
Advantages over persistent variables:
* every time your m-file is changed, the memory cache is not cleared.
Zitieren als
Mark Histed (2026). disk, memory caching - store objects by arbitrary key (https://de.mathworks.com/matlabcentral/fileexchange/21352-disk-memory-caching-store-objects-by-arbitrary-key), MATLAB Central File Exchange. Abgerufen .
Allgemeine Informationen
- Version 1.0.0.0 (12,3 KB)
-
Keine Lizenz
Kompatibilität der MATLAB-Version
- Kompatibel mit allen Versionen
Plattform-Kompatibilität
- Windows
- macOS
- Linux
| Version | Veröffentlicht | Versionshinweise | Action |
|---|---|---|---|
| 1.0.0.0 |
