[ Index ]

PHP Cross Reference of MediaWiki-1.24.0

title

Body

[close]

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

Dummy object caching. 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: 80 lines (2 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

EmptyBagOStuff:: (5 methods):
  get()
  set()
  cas()
  delete()
  merge()


Class: EmptyBagOStuff  - X-Ref

A BagOStuff object with no objects in it. Used to provide a no-op object to calling code.

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

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

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

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

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

param: mixed $casToken
param: string $key
param: mixed $value
param: int $exp
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



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