QGIS API Documentation 3.99.0-Master (2fe06baccd8)
Loading...
Searching...
No Matches
QgsPeriodicCacheStrategy Class Reference

Periodic system cache strategy for server configuration. More...

#include <qgsconfigcache.h>

Inheritance diagram for QgsPeriodicCacheStrategy:

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

Detailed Description

Periodic system cache strategy for server configuration.

Since
QGIS 3.26

Definition at line 207 of file qgsconfigcache.h.

Constructor & Destructor Documentation

◆ QgsPeriodicCacheStrategy()

QgsPeriodicCacheStrategy::QgsPeriodicCacheStrategy ( int interval = 3000)

Creates a new periodic strategy.

Parameters
intervalThe invalidation check interval in milliseconds

Definition at line 342 of file qgsconfigcache.cpp.

Member Function Documentation

◆ attach()

void QgsPeriodicCacheStrategy::attach ( QgsConfigCache * owner)
overridevirtual

Attaches cache to this strategy.

Implements QgsAbstractCacheStrategy.

Definition at line 347 of file qgsconfigcache.cpp.

◆ checkInterval()

int QgsPeriodicCacheStrategy::checkInterval ( ) const
inline

Returns the invalidation check interval.

Definition at line 228 of file qgsconfigcache.h.

◆ entryInserted()

void QgsPeriodicCacheStrategy::entryInserted ( const QString & path)
overridevirtual

Called when an entry is inserted.

Parameters
pathThe path of the project

Implements QgsAbstractCacheStrategy.

Definition at line 359 of file qgsconfigcache.cpp.

◆ entryRemoved()

void QgsPeriodicCacheStrategy::entryRemoved ( const QString & path)
overridevirtual

Called when an entry is removed from cache.

Parameters
pathThe path of the project

Implements QgsAbstractCacheStrategy.

Definition at line 353 of file qgsconfigcache.cpp.

◆ name()

QString QgsPeriodicCacheStrategy::name ( ) const
inlineoverridevirtual

The name of the strategy.

Implements QgsAbstractCacheStrategy.

Definition at line 217 of file qgsconfigcache.h.

◆ setCheckInterval()

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 368 of file qgsconfigcache.cpp.


The documentation for this class was generated from the following files: