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