MediaWiki  REL1_22
WinCacheBagOStuff Class Reference

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

Inheritance diagram for WinCacheBagOStuff:
Collaboration diagram for WinCacheBagOStuff:

List of all members.

Public Member Functions

 cas ($casToken, $key, $value, $exptime=0)
 Store a value in the WinCache object cache, race condition-safe.
 delete ($key, $time=0)
 Remove a value from the WinCache object cache.
 get ($key, &$casToken=null)
 Get a value from the WinCache object cache.
 set ($key, $value, $expire=0)
 Store a value in the WinCache object cache.

Detailed Description

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

Definition at line 30 of file WinCacheBagOStuff.php.


Member Function Documentation

WinCacheBagOStuff::cas ( casToken,
key,
value,
exptime = 0 
)

Store a value in the WinCache object cache, race condition-safe.

Parameters:
int$casTokencas token
string$keycache key
int$valueobject to store
int$exptimeexpiration time
Returns:
bool

Reimplemented from BagOStuff.

Definition at line 76 of file WinCacheBagOStuff.php.

References $key, and $value.

WinCacheBagOStuff::delete ( key,
time = 0 
)

Remove a value from the WinCache object cache.

Parameters:
string$keycache key
int$timenot used in this implementation
Returns:
bool

Reimplemented from BagOStuff.

Definition at line 87 of file WinCacheBagOStuff.php.

References $key.

WinCacheBagOStuff::get ( key,
&$  casToken = null 
)

Get a value from the WinCache object cache.

Parameters:
string$keycache key
$casToken[optional]int: cas token
Returns:
mixed

Reimplemented from BagOStuff.

Definition at line 39 of file WinCacheBagOStuff.php.

References $key.

WinCacheBagOStuff::set ( key,
value,
expire = 0 
)

Store a value in the WinCache object cache.

Parameters:
string$keycache key
$valueMixed: object to store
int$expireexpiration time
Returns:
bool

Reimplemented from BagOStuff.

Definition at line 59 of file WinCacheBagOStuff.php.

References $key, $result, $value, and array().


The documentation for this class was generated from the following file: