#include <audit_cache.hpp>
|
| QList< AuditResult > | getCachedResults (const QString &file) |
| | Retrieves cached audit results for a given file and options combination.
|
| |
| void | cacheResults (const QString &file, const QList< AuditResult > &results) |
| | Caches the audit results for a specified file and options combination.
|
| |
◆ cacheResults()
| void AuditCache::cacheResults |
( |
const QString & |
cacheKey, |
|
|
const QList< AuditResult > & |
results |
|
) |
| |
Caches the audit results for a specified file and options combination.
This function stores the provided list of audit results associated with the given cache key (file path + options) in the cache. If the key already exists in the cache, its associated results will be overwritten.
- Parameters
-
| cacheKey | The combined file path and options string. |
| results | A QList of AuditResult objects representing the audit results to be cached. |
◆ getCachedResults()
| QList< AuditResult > AuditCache::getCachedResults |
( |
const QString & |
cacheKey | ) |
|
Retrieves cached audit results for a given file and options combination.
- Parameters
-
| cacheKey | The combined file path and options string. |
- Returns
- A list of cached audit results, or an empty list if no results are found.
◆ cache
The documentation for this class was generated from the following files: