QGIS API Documentation 3.41.0-Master (af5edcb665c)
Loading...
Searching...
No Matches
Public Member Functions | List of all members
QgsAbstractCacheStrategy Class Referenceabstract

Abstract base class for implementing cache invalidation strategy. More...

#include <qgsconfigcache.h>

Inheritance diagram for QgsAbstractCacheStrategy:
Inheritance graph
[legend]

Public Member Functions

virtual ~QgsAbstractCacheStrategy ()=default
 
virtual void attach (QgsConfigCache *cache)=0
 Attache cache to this strategy.
 
virtual void entryInserted (const QString &path)=0
 Called when an entry is removed from cache.
 
virtual void entryRemoved (const QString &path)=0
 Called when an entry is removed from cache.
 
virtual QString name () const =0
 The name of the strategy.
 

Detailed Description

Abstract base class for implementing cache invalidation strategy.

Since
QGIS 3.26

Definition at line 45 of file qgsconfigcache.h.

Constructor & Destructor Documentation

◆ ~QgsAbstractCacheStrategy()

virtual QgsAbstractCacheStrategy::~QgsAbstractCacheStrategy ( )
virtualdefault

Member Function Documentation

◆ attach()

virtual void QgsAbstractCacheStrategy::attach ( QgsConfigCache cache)
pure virtual

Attache cache to this strategy.

Implemented in QgsFileSystemCacheStrategy, QgsPeriodicCacheStrategy, and QgsNullCacheStrategy.

◆ entryInserted()

virtual void QgsAbstractCacheStrategy::entryInserted ( const QString &  path)
pure virtual

Called when an entry is removed from cache.

Parameters
pathThe path of the project

Implemented in QgsFileSystemCacheStrategy, QgsPeriodicCacheStrategy, and QgsNullCacheStrategy.

◆ entryRemoved()

virtual void QgsAbstractCacheStrategy::entryRemoved ( const QString &  path)
pure virtual

Called when an entry is removed from cache.

Parameters
pathThe path of the project

Implemented in QgsFileSystemCacheStrategy, QgsPeriodicCacheStrategy, and QgsNullCacheStrategy.

◆ name()

virtual QString QgsAbstractCacheStrategy::name ( ) const
pure virtual

The name of the strategy.

Implemented in QgsFileSystemCacheStrategy, QgsPeriodicCacheStrategy, and QgsNullCacheStrategy.


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