MediaWiki master
|
Public Member Functions | |
clearUser (UserIdentity $user) | |
Clear all block cache entries associated with a user. | |
get (BlockCacheKey $key) | |
Get a cached Block for the given key, or null if there is no cache entry, or false if there is a cache entry indicating that the given target is not blocked. | |
set (BlockCacheKey $key, $value) | |
Set a block cache entry. | |
Definition at line 10 of file BlockCache.php.
MediaWiki\Block\BlockCache::clearUser | ( | UserIdentity | $user | ) |
Clear all block cache entries associated with a user.
UserIdentity | $user |
Definition at line 46 of file BlockCache.php.
MediaWiki\Block\BlockCache::get | ( | BlockCacheKey | $key | ) |
Get a cached Block for the given key, or null if there is no cache entry, or false if there is a cache entry indicating that the given target is not blocked.
BlockCacheKey | $key |
Definition at line 22 of file BlockCache.php.
MediaWiki\Block\BlockCache::set | ( | BlockCacheKey | $key, |
$value ) |
Set a block cache entry.
BlockCacheKey | $key | The bundled block cache parameters |
AbstractBlock | false | $value | The block, or false to indicate that the target is not blocked. |
Definition at line 37 of file BlockCache.php.
References MediaWiki\Block\BlockCacheKey\getPartialKey().