QGIS API Documentation 3.41.0-Master (af5edcb665c)
|
Periodic system cache strategy for server configuration. More...
#include <qgsconfigcache.h>
Public Member Functions | |
QgsPeriodicCacheStrategy (int interval=3000) | |
Creates a new periodic strategy. | |
void | attach (QgsConfigCache *owner) override |
Attaches cache to this strategy. | |
int | checkInterval () const |
Returns the invalidation check interval. | |
void | entryInserted (const QString &path) override |
Called when an entry is inserted. | |
void | entryRemoved (const QString &path) override |
Called when an entry is removed from cache. | |
QString | name () const override |
The name of the strategy. | |
void | setCheckInterval (int msec) |
Sets the invalidation check interval for PeriodicStrategy. | |
Public Member Functions inherited from QgsAbstractCacheStrategy | |
virtual | ~QgsAbstractCacheStrategy ()=default |
Periodic system cache strategy for server configuration.
Definition at line 207 of file qgsconfigcache.h.
QgsPeriodicCacheStrategy::QgsPeriodicCacheStrategy | ( | int | interval = 3000 | ) |
Creates a new periodic strategy.
interval | The invalidation check interval in milliseconds |
Definition at line 309 of file qgsconfigcache.cpp.
|
overridevirtual |
Attaches cache to this strategy.
Implements QgsAbstractCacheStrategy.
Definition at line 314 of file qgsconfigcache.cpp.
|
inline |
Returns the invalidation check interval.
Definition at line 228 of file qgsconfigcache.h.
|
overridevirtual |
Called when an entry is inserted.
path | The path of the project |
Implements QgsAbstractCacheStrategy.
Definition at line 326 of file qgsconfigcache.cpp.
|
overridevirtual |
Called when an entry is removed from cache.
path | The path of the project |
Implements QgsAbstractCacheStrategy.
Definition at line 320 of file qgsconfigcache.cpp.
|
inlineoverridevirtual |
The name of the strategy.
Implements QgsAbstractCacheStrategy.
Definition at line 217 of file qgsconfigcache.h.
void QgsPeriodicCacheStrategy::setCheckInterval | ( | int | msec | ) |
Sets the invalidation check interval for PeriodicStrategy.
If msec is set to a positive value then the cache will check for invalidation every msec milliseconds
Definition at line 335 of file qgsconfigcache.cpp.