Go to the documentation of this file.
38 public function get( $key, &$casToken = null ) {
39 $val = xcache_get( $key );
41 if ( is_string( $val ) ) {
43 $val = intval( $val );
45 $val = unserialize( $val );
47 } elseif ( is_null( $val ) ) {
62 public function set( $key,
$value, $expire = 0 ) {
67 xcache_set( $key,
$value, $expire );
78 public function cas( $casToken, $key,
$value, $exptime = 0 ) {
80 throw new MWException(
"CAS is not implemented in " . __CLASS__ );
90 public function delete( $key,
$time = 0 ) {
106 public function merge( $key, closure $callback, $exptime = 0, $attempts = 10 ) {
107 return $this->
mergeViaLock( $key, $callback, $exptime, $attempts );
111 return xcache_inc( $key,
$value );
115 return xcache_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
interface is intended to be more or less compatible with the PHP memcached client.
incr( $key, $value=1)
Increase stored value of $key by $value while preserving its TTL.
merge( $key, closure $callback, $exptime=0, $attempts=10)
Merge an item.
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)
Wrapper for XCache object caching functions; identical interface to the APC wrapper.