Add getStats() method for MemoryCaches

This commit is contained in:
Philipp 2025-04-21 19:37:37 +02:00
parent ffb621f0e4
commit 01296e98f9
No known key found for this signature in database
GPG key ID: 24A7501396EB5432
12 changed files with 170 additions and 0 deletions

View file

@ -53,4 +53,11 @@ interface ICanCacheInMemory extends ICanCache
* @throws CachePersistenceException In case the underlying cache driver has errors during persistence
*/
public function compareDelete(string $key, $value): bool;
/**
* Returns some basic statistics of the used Cache instance
*
* @return array Returns an associative array of statistics
*/
public function getStats(): array;
}