QGIS API Documentation  3.26.3-Buenos Aires (65e4edfdad)
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. More...
 
virtual void entryInserted (const QString &path)=0
 Called when an entry is removed from cache. More...
 
virtual void entryRemoved (const QString &path)=0
 Called when an entry is removed from cache. More...
 
virtual QString name () const =0
 The name of the strategy. More...
 

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 QgsNullCacheStrategy, QgsPeriodicCacheStrategy, and QgsFileSystemCacheStrategy.

◆ 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 QgsNullCacheStrategy, QgsPeriodicCacheStrategy, and QgsFileSystemCacheStrategy.

◆ 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 QgsNullCacheStrategy, QgsPeriodicCacheStrategy, and QgsFileSystemCacheStrategy.

◆ name()

virtual QString QgsAbstractCacheStrategy::name ( ) const
pure virtual

The name of the strategy.

Implemented in QgsNullCacheStrategy, QgsPeriodicCacheStrategy, and QgsFileSystemCacheStrategy.


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