APCSharedCache Class Reference

List of all members.

Public Member Functions

 get ($key, &$casToken=null)
 set ($key, $value, $exptime=0)
 cas ($casToken, $key, $value, $exptime=0)
 delete ($key, $time=0)
 merge ($key, closure $callback, $exptime=0, $attempts=10)
 incr ($key, $value=1)
 decr ($key, $value=1)

Detailed Description

This is a wrapper for APC's shared memory functions


Member Function Documentation

APCSharedCache::cas ( casToken,
key,
value,
exptime = 0 
)
Parameters:
$casToken mixed
$key string
$value mixed
$exptime int
Returns:
bool
APCSharedCache::delete ( key,
time = 0 
)
Parameters:
$key string
$time int
Returns:
bool
APCSharedCache::get ( key,
&$  casToken = null 
)
Parameters:
$key string
$casToken[optional] int
Returns:
mixed
APCSharedCache::merge ( key,
closure $  callback,
exptime = 0,
attempts = 10 
)
Parameters:
$key string
$callback closure Callback method to be executed
int $exptime Either an interval in seconds or a unix timestamp for expiry
int $attempts The amount of times to attempt a merge in case of failure
Returns:
bool success
APCSharedCache::set ( key,
value,
exptime = 0 
)
Parameters:
$key string
$value mixed
$exptime int
Returns:
bool

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

Generated on 9 Jan 2025 for The Forum by  doxygen 1.6.1