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.
Methods
Returns the memory usage in bytes for the entry.  | 
|
Dumps debugging strings containing the item's properties.  | 
|
Tests whether this entry matches another entry.  | 
Attributes
Timestamp when file was last modified  | 
|
Time since last check of file modified date  | 
|
Timeout before re-checking whether the file modified date has changed.  | 
|
Entries are kept on a linked list, sorted by last access.  | 
|
Represents the absolute path to a file, a remote URL, or a base64 encoded string.  | 
|
Entries are kept on a linked list, sorted by last access.  | 
- 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])
- dump(self)[source]¶
 Dumps debugging strings containing the item’s properties. For testing purposes only.
- fileModified¶
 Timestamp when file was last modified
- fileModifiedLastCheckTimer¶
 Time since last check of file modified date
- 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¶
 Timeout before re-checking whether the file modified date has changed.
- nextEntry¶
 Entries are kept on a linked list, sorted by last access. This point refers to the next entry in the cache.
- path¶
 Represents the absolute path to a file, a remote URL, or a base64 encoded string.
- previousEntry¶
 Entries are kept on a linked list, sorted by last access. This point refers to the previous entry in the cache.