Go to the documentation of this file.
35 public function get( $key, &$casToken = null ) {
36 $val = apc_fetch( $key );
40 if ( is_string( $val ) ) {
42 $val = intval( $val );
44 $val = unserialize( $val );
57 public function set( $key,
$value, $exptime = 0 ) {
62 apc_store( $key,
$value, $exptime );
74 public function cas( $casToken, $key,
$value, $exptime = 0 ) {
76 throw new MWException(
"CAS is not implemented in " . __CLASS__ );
84 public function delete( $key,
$time = 0 ) {
97 public function merge( $key, closure $callback, $exptime = 0, $attempts = 10 ) {
98 return $this->
mergeViaLock( $key, $callback, $exptime, $attempts );
102 return apc_inc( $key,
$value );
106 return apc_dec( $key,
$value );
isInteger( $value)
Check if a value is an integer.
see documentation in includes Linker php for Linker::makeImageLink & $time
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
merge( $key, closure $callback, $exptime=0, $attempts=10)
interface is intended to be more or less compatible with the PHP memcached client.
decr( $key, $value=1)
Decrease stored value of $key by $value while preserving its TTL.
cas( $casToken, $key, $value, $exptime=0)
mergeViaLock( $key, closure $callback, $exptime=0, $attempts=10)
incr( $key, $value=1)
Increase stored value of $key by $value while preserving its TTL.
This is a wrapper for APC's shared memory functions.