Class: QgsAbstractContentCacheEntry¶
Base class for entries in a QgsAbstractContentCache.
Subclasses must take care to correctly implement the isEqual()
method, applying their own logic for testing extra cache properties
(e.g. image size for an image-based cache).
Added in version 3.6.
Note
This is an abstract class, with methods which must be implemented by a subclass.
The following methods must be implemented: dataSize(), dump(), isEqual()
- class qgis.core.QgsAbstractContentCacheEntry[source]¶
Bases:
object- __init__(path: str | None)
Constructor for QgsAbstractContentCacheEntry for an entry relating to the specified
path.- Parameters:
path (Optional[str])
- abstract dataSize(self) int[source]¶
Returns the memory usage in bytes for the entry.
- Return type:
int
- abstract dump(self)[source]¶
Dumps debugging strings containing the item’s properties. For testing purposes only.
- fileModified: QDateTime¶
- fileModifiedLastCheckTimer: QElapsedTimer¶
- abstract isEqual(self, other: QgsAbstractContentCacheEntry | None) bool[source]¶
Tests whether this entry matches another entry. Subclasses must take care to check that the type of
otheris of a matching class, and then test extra cache-specific properties, such as image size.- Parameters:
other (Optional[QgsAbstractContentCacheEntry])
- Return type:
bool
- mFileModifiedCheckTimeout: int¶
- nextEntry: QgsAbstractContentCacheEntry¶
- path: str¶
- previousEntry: QgsAbstractContentCacheEntry¶