[ Index ]

PHP Cross Reference of MediaWiki-1.24.0

title

Body

[close]

/includes/objectcache/ -> APCBagOStuff.php (summary)

Object caching using PHP's APC accelerator. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

File Size: 108 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

APCBagOStuff:: (7 methods):
  get()
  set()
  cas()
  delete()
  merge()
  incr()
  decr()


Class: APCBagOStuff  - X-Ref

This is a wrapper for APC's shared memory functions

get( $key, &$casToken = null )   X-Ref

param: string $key
param: int $casToken [optional]
return: mixed

set( $key, $value, $exptime = 0 )   X-Ref

param: string $key
param: mixed $value
param: int $exptime
return: bool

cas( $casToken, $key, $value, $exptime = 0 )   X-Ref

param: mixed $casToken
param: string $key
param: mixed $value
param: int $exptime
return: bool

delete( $key, $time = 0 )   X-Ref

param: string $key
param: int $time
return: bool

merge( $key, Closure $callback, $exptime = 0, $attempts = 10 )   X-Ref

param: string $key
param: Closure $callback Callback method to be executed
param: int $exptime Either an interval in seconds or a unix timestamp for expiry
param: int $attempts The amount of times to attempt a merge in case of failure
return: bool Success

incr( $key, $value = 1 )   X-Ref
No description

decr( $key, $value = 1 )   X-Ref
No description



Generated: Fri Nov 28 14:03:12 2014 Cross-referenced by PHPXref 0.7.1