Class: QgsConfigCache¶
-
class
qgis.server.
QgsConfigCache
¶ Bases:
PyQt5.QtCore.QObject
Cache for server configuration.
Methods
Returns the current instance.
If the project is not cached yet, then the project is read thanks to the path.
Removes an entry from cache.
-
instance
() → QgsConfigCache¶ Returns the current instance.
- Return type
-
project
(self, path: str) → QgsProject¶ If the project is not cached yet, then the project is read thanks to the path. If the project is not available, then a None is returned.
- Parameters
path (str) – the filename of the QGIS project
- Return type
- Returns
the project or None if an error happened
New in version 3.0.
-
removeEntry
(self, path: str)¶ Removes an entry from cache.
- Parameters
path (str) – The path of the project
-