Simple CacheInterface that increments a statsd metric based on the number of cache misses that occur.
More...
Simple CacheInterface that increments a statsd metric based on the number of cache misses that occur.
- Copyright
- GPL-2.0-or-later
◆ __construct()
Wikibase\Lib\StatsdRecordingSimpleCache::__construct |
( |
CacheInterface | $inner, |
|
|
StatsdDataFactoryInterface | $stats, |
|
|
array | $statsKeys ) |
- Parameters
-
CacheInterface | $inner | |
StatsdDataFactoryInterface | $stats | |
string[] | $statsKeys | |
◆ clear()
Wikibase\Lib\StatsdRecordingSimpleCache::clear |
( |
| ) |
|
◆ delete()
Wikibase\Lib\StatsdRecordingSimpleCache::delete |
( |
| $key | ) |
|
◆ deleteMultiple()
Wikibase\Lib\StatsdRecordingSimpleCache::deleteMultiple |
( |
| $keys | ) |
|
◆ get()
Wikibase\Lib\StatsdRecordingSimpleCache::get |
( |
| $key, |
|
|
| $default = null ) |
◆ getMultiple()
Wikibase\Lib\StatsdRecordingSimpleCache::getMultiple |
( |
| $keys, |
|
|
| $default = null ) |
◆ has()
Wikibase\Lib\StatsdRecordingSimpleCache::has |
( |
| $key | ) |
|
◆ recordHits()
Wikibase\Lib\StatsdRecordingSimpleCache::recordHits |
( |
int | $count | ) |
|
|
private |
◆ recordMisses()
Wikibase\Lib\StatsdRecordingSimpleCache::recordMisses |
( |
int | $count | ) |
|
|
private |
◆ set()
Wikibase\Lib\StatsdRecordingSimpleCache::set |
( |
| $key, |
|
|
| $value, |
|
|
| $ttl = null ) |
◆ setMultiple()
Wikibase\Lib\StatsdRecordingSimpleCache::setMultiple |
( |
| $values, |
|
|
| $ttl = null ) |
◆ $inner
Wikibase\Lib\StatsdRecordingSimpleCache::$inner |
|
private |
◆ $stats
Wikibase\Lib\StatsdRecordingSimpleCache::$stats |
|
private |
◆ $statsKeys
Wikibase\Lib\StatsdRecordingSimpleCache::$statsKeys |
|
private |
◆ DEFAULT_VALUE
const Wikibase\Lib\StatsdRecordingSimpleCache::DEFAULT_VALUE = __CLASS__ . '-default' |
|
private |
The documentation for this class was generated from the following file: