|
| __construct (int $maxSize) |
|
| add (int $actorId, UserIdentity $actor) |
| Add $actor with $actorId to the cache.
|
|
| clear () |
| Remove everything from the cache.
|
|
| getActor (string $keyType, $keyValue) |
| Get user identity which has $keyType equal to $keyValue.
|
|
| getActorId (string $keyType, $keyValue) |
| Get actor ID of the user which has $keyType equal to $keyValue.
|
|
| remove (UserIdentity $actor) |
| Remove $actor from cache.
|
|
Definition at line 36 of file ActorCache.php.
◆ __construct()
MediaWiki\User\ActorCache::__construct |
( |
int | $maxSize | ) |
|
- Parameters
-
int | $maxSize | hold up to this many UserIdentity values |
Definition at line 59 of file ActorCache.php.
◆ add()
MediaWiki\User\ActorCache::add |
( |
int | $actorId, |
|
|
UserIdentity | $actor ) |
◆ clear()
MediaWiki\User\ActorCache::clear |
( |
| ) |
|
Remove everything from the cache.
- Access: internal
Definition at line 125 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 69 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 79 of file ActorCache.php.
◆ remove()
The documentation for this class was generated from the following file: