Definition at line 36 of file ActorCache.php.
◆ __construct()
MediaWiki\User\ActorCache::__construct |
( |
int |
$maxSize | ) |
|
◆ add()
MediaWiki\User\ActorCache::add |
( |
int |
$actorId, |
|
|
UserIdentity |
$actor |
|
) |
| |
◆ clear()
MediaWiki\User\ActorCache::clear |
( |
| ) |
|
Remove everything from the cache.
- Access: internal
Definition at line 126 of file ActorCache.php.
◆ getActor()
MediaWiki\User\ActorCache::getActor |
( |
string |
$keyType, |
|
|
|
$keyValue |
|
) |
| |
Get user identity which has $keyType equal to $keyValue.
- Parameters
-
string | $keyType | one of self::KEY_* constants. |
string | int | $keyValue | |
- Returns
- UserIdentity|null
Definition at line 70 of file ActorCache.php.
◆ getActorId()
MediaWiki\User\ActorCache::getActorId |
( |
string |
$keyType, |
|
|
|
$keyValue |
|
) |
| |
Get actor ID of the user which has $keyType equal to $keyValue.
- Parameters
-
string | $keyType | one of self::KEY_* constants. |
string | int | $keyValue | |
- Returns
- int|null
Definition at line 80 of file ActorCache.php.
◆ remove()
The documentation for this class was generated from the following file: