Go to the documentation of this file.
37 if ( !isset(
$params[
'servers'] ) ) {
40 if ( !isset(
$params[
'debug'] ) ) {
43 if ( !isset(
$params[
'persistent'] ) ) {
46 if ( !isset(
$params[
'compress_threshold'] ) ) {
47 $params[
'compress_threshold'] = 1500;
49 if ( !isset(
$params[
'timeout'] ) ) {
52 if ( !isset(
$params[
'connect_timeout'] ) ) {
53 $params[
'connect_timeout'] = 0.5;
63 public function get( $key, &$casToken = null ) {
64 return $this->client->get( $this->
encodeKey( $key ), $casToken );
73 public function set( $key,
$value, $exptime = 0 ) {
85 public function cas( $casToken, $key,
$value, $exptime = 0 ) {
86 return $this->client->cas( $casToken, $this->
encodeKey( $key ),
95 public function delete( $key,
$time = 0 ) {
129 return preg_replace_callback(
'/[\x00-\x20\x25\x7f]+/',
130 array( $this,
'encodeKeyCallback' ), $key );
138 return rawurlencode( $m[0] );
149 if ( $expiry > 2592000 && $expiry < 1000000000 ) {
164 return urldecode( $key );
fixExpiry( $expiry)
TTLs higher than 30 days will be detected as absolute TTLs (UNIX timestamps), and will result in the ...
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
decodeKey( $key)
Decode a key encoded with encodeKey().
Base class for memcached clients.
applyDefaultParams( $params)
Fill in the defaults for any parameters missing from $params, using the backwards-compatible global v...
wfDebugLog( $logGroup, $text, $dest='all')
Send a line to a supplementary debug log file, if configured, or main debug log if not.
interface is intended to be more or less compatible with the PHP memcached client.
debugLog( $text)
Send a debug message to the log.
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
cas( $casToken, $key, $value, $exptime=0)
encodeKey( $key)
Encode a key for use on the wire inside the memcached protocol.
getClient()
Get the underlying client object.
add( $key, $value, $exptime=0)