Class: QgsAbstractContentCacheEntry¶
- class qgis.core.QgsAbstractContentCacheEntry¶
Bases:
sip.wrapper
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).New in version 3.6.
QgsAbstractContentCacheEntry(path: str) Constructor for
QgsAbstractContentCacheEntry
for an entry relating to the specifiedpath
.- dataSize(self) int ¶
Returns the memory usage in bytes for the entry.
- Return type:
int
- dump(self)¶
Dumps debugging strings containing the item’s properties. For testing purposes only.
- fileModified¶
- fileModifiedLastCheckTimer¶
- isEqual(self, other: QgsAbstractContentCacheEntry) bool ¶
Tests whether this entry matches another entry. Subclasses must take care to check that the type of
other
is of a matching class, and then test extra cache-specific properties, such as image size.- Parameters:
other (QgsAbstractContentCacheEntry) –
- Return type:
bool
- mFileModifiedCheckTimeout¶
- nextEntry¶
- path¶
- previousEntry¶