[ Index ]

PHP Cross Reference of MediaWiki-1.24.0

title

Body

[close]

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

Object caching using WinCache. 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: 92 lines (2 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

WinCacheBagOStuff:: (4 methods):
  get()
  set()
  cas()
  delete()


Class: WinCacheBagOStuff  - X-Ref

Wrapper for WinCache object caching functions; identical interface
to the APC wrapper

get( $key, &$casToken = null )   X-Ref
Get a value from the WinCache object cache

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

set( $key, $value, $expire = 0 )   X-Ref
Store a value in the WinCache object cache

param: string $key Cache key
param: mixed $value Value to store
param: int $expire Expiration time
return: bool

cas( $casToken, $key, $value, $exptime = 0 )   X-Ref
Store a value in the WinCache object cache, race condition-safe

param: int $casToken Cas token
param: string $key Cache key
param: int $value Object to store
param: int $exptime Expiration time
return: bool

delete( $key, $time = 0 )   X-Ref
Remove a value from the WinCache object cache

param: string $key Cache key
param: int $time Not used in this implementation
return: bool



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