MediaWiki  REL1_20
XCacheBagOStuff Class Reference

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

Inheritance diagram for XCacheBagOStuff:
Collaboration diagram for XCacheBagOStuff:

List of all members.

Public Member Functions

 decr ($key, $value=1)
 Decrease stored value of $key by $value while preserving its TTL.
 delete ($key, $time=0)
 Remove a value from the XCache object cache.
 get ($key)
 Get a value from the XCache object cache.
 incr ($key, $value=1)
 Increase stored value of $key by $value while preserving its TTL.
 set ($key, $value, $expire=0)
 Store a value in the XCache object cache.

Detailed Description

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

Definition at line 30 of file XCacheBagOStuff.php.


Member Function Documentation

XCacheBagOStuff::decr ( key,
value = 1 
)

Decrease stored value of $key by $value while preserving its TTL.

Parameters:
$keyString
$valueInteger
Returns:
integer

Reimplemented from BagOStuff.

Definition at line 86 of file XCacheBagOStuff.php.

References $value.

XCacheBagOStuff::delete ( key,
time = 0 
)

Remove a value from the XCache object cache.

Parameters:
$keyString: cache key
$timeInt: not used in this implementation
Returns:
bool

Reimplemented from BagOStuff.

Definition at line 77 of file XCacheBagOStuff.php.

Get a value from the XCache object cache.

Parameters:
$keyString: cache key
Returns:
mixed

Reimplemented from BagOStuff.

Definition at line 37 of file XCacheBagOStuff.php.

References BagOStuff\isInteger().

XCacheBagOStuff::incr ( key,
value = 1 
)

Increase stored value of $key by $value while preserving its TTL.

Parameters:
$keyString: Key to increase
$valueInteger: Value to add to $key (Default 1)
Returns:
integer|bool New value or false on failure

Reimplemented from BagOStuff.

Definition at line 82 of file XCacheBagOStuff.php.

References $value.

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

Store a value in the XCache object cache.

Parameters:
$keyString: cache key
$valueMixed: object to store
$expireInt: expiration time
Returns:
bool

Reimplemented from BagOStuff.

Definition at line 61 of file XCacheBagOStuff.php.

References $value, and BagOStuff\isInteger().


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