This class manages the various caches for units of measure to improve performance.
More...
|
| symbolRegistry |
|
| baseRegistry |
|
| unitRegistry |
|
| unitTypeRegistry |
|
This class manages the various caches for units of measure to improve performance.
◆ getBaseSymbolCache()
def uom.cache_manager.CacheManager.getBaseSymbolCache |
( |
|
self | ) |
|
Get the units of measure cached by their base symbol.
- Returns
- Base symbol cache
◆ getBaseUOM()
def uom.cache_manager.CacheManager.getBaseUOM |
( |
|
self, |
|
|
|
baseSymbol |
|
) |
| |
Get the unit of measure with this base symbol.
- Parameters
-
- Returns
- UnitOfMeasure
◆ getEnumerationCache()
def uom.cache_manager.CacheManager.getEnumerationCache |
( |
|
self | ) |
|
Get the units of measure cached by their Unit enumeration.
- Returns
- Enumeration cache
◆ getSymbolCache()
def uom.cache_manager.CacheManager.getSymbolCache |
( |
|
self | ) |
|
Get the units of measure cached by their symbol.
- Returns
- Symbol cache
◆ getUOMBySymbol()
def uom.cache_manager.CacheManager.getUOMBySymbol |
( |
|
self, |
|
|
|
symbol |
|
) |
| |
Get the unit of measure with this unique symbol.
- Parameters
-
- Returns
- UnitOfMeasure
◆ getUOMByUnit()
def uom.cache_manager.CacheManager.getUOMByUnit |
( |
|
self, |
|
|
|
unit |
|
) |
| |
Get the unit of measure with this Unit enumeration.
- Parameters
-
- Returns
- UnitOfMeasure
◆ registerUOM()
def uom.cache_manager.CacheManager.registerUOM |
( |
|
self, |
|
|
|
uom |
|
) |
| |
Cache this unit of measure.
- Parameters
-
◆ unregisterUOM()
def 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: