This class manages the various caches for units of measure to improve performance.
More...
|
|
| __init__ (self) |
| |
| | getUOMBySymbol (self, symbol) |
| | Get the unit of measure with this unique symbol.
|
| |
| | getUOMByUnit (self, unit) |
| | Get the unit of measure with this Unit enumeration.
|
| |
| | getBaseUOM (self, baseSymbol) |
| | Get the unit of measure with this base symbol.
|
| |
|
| clearCache (self) |
| | Remove all cached units of measure.
|
| |
|
| getCachedUOMs (self) |
| |
| | getSymbolCache (self) |
| | Get the units of measure cached by their symbol.
|
| |
| | getBaseSymbolCache (self) |
| | Get the units of measure cached by their base symbol.
|
| |
| | getEnumerationCache (self) |
| | Get the units of measure cached by their Unit enumeration.
|
| |
| | unregisterUOM (self, uom) |
| | Remove a UOM from the cache.
|
| |
| | registerUOM (self, uom) |
| | Cache this unit of measure.
|
| |
|
| getTypeMap (self, unitType) |
| |
|
|
| symbolRegistry |
| |
|
| baseRegistry |
| |
|
| unitRegistry |
| |
|
| unitTypeRegistry |
| |
This class manages the various caches for units of measure to improve performance.
◆ getBaseSymbolCache()
| uom.cache_manager.CacheManager.getBaseSymbolCache |
( |
| self | ) |
|
Get the units of measure cached by their base symbol.
- Returns
- Base symbol cache
◆ getBaseUOM()
| uom.cache_manager.CacheManager.getBaseUOM |
( |
| self, |
|
|
| baseSymbol ) |
Get the unit of measure with this base symbol.
- Parameters
-
- Returns
UnitOfMeasure
◆ getEnumerationCache()
| uom.cache_manager.CacheManager.getEnumerationCache |
( |
| self | ) |
|
Get the units of measure cached by their Unit enumeration.
- Returns
- Enumeration cache
◆ getSymbolCache()
| uom.cache_manager.CacheManager.getSymbolCache |
( |
| self | ) |
|
Get the units of measure cached by their symbol.
- Returns
- Symbol cache
◆ getUOMBySymbol()
| uom.cache_manager.CacheManager.getUOMBySymbol |
( |
| self, |
|
|
| symbol ) |
Get the unit of measure with this unique symbol.
- Parameters
-
- Returns
UnitOfMeasure
◆ getUOMByUnit()
| uom.cache_manager.CacheManager.getUOMByUnit |
( |
| self, |
|
|
| unit ) |
Get the unit of measure with this Unit enumeration.
- Parameters
-
- Returns
UnitOfMeasure
◆ registerUOM()
| uom.cache_manager.CacheManager.registerUOM |
( |
| self, |
|
|
| uom ) |
Cache this unit of measure.
- Parameters
-
◆ unregisterUOM()
| uom.cache_manager.CacheManager.unregisterUOM |
( |
| self, |
|
|
| uom ) |
Remove a UOM from the cache.
- Parameters
-
The documentation for this class was generated from the following file: