The Memcache classIntroductionRepresents a connection to a set of memcache servers. Class synopsisMemcache
class Memcache
{
bool add(
string $key ,mixed $var ,int $flag = ?,int $expire = ?) bool addServer(
string $host ,int $port = 11211,bool $persistent = ?,int $weight = ?,int $timeout = ?,int $retry_interval = ?,bool $status = ?,callable $failure_callback = ?,int $timeoutms = ?) bool close()
bool connect(string
$host , int $port = ?, int $timeout = ?)intfalse decrement(string
$key , int $value = 1)bool delete(string
$key , int $exptime = 0)bool flush()
string get(string
$key , int &$flags = ?)array getExtendedStats(string
$type = ?, int $slabid = ?, int $limit = 100)int getServerStatus(string
$host , int $port = 11211)arrayfalse getStats(string
$type = ?, int $slabid = ?, int $limit = 100)stringfalse getVersion()
intfalse increment(string
$key , int $value = 1)mixed pconnect(string
$host , int $port = ?, int $timeout = ?)bool replace(
string $key ,mixed $var ,int $flag = ?,int $expire = ?) bool set(
string $key ,mixed $var ,int $flag = ?,int $expire = ?) bool setCompressThreshold(int
$threshold , float $min_savings = ?)bool setServerParams(
}string $host ,int $port = 11211,int $timeout = ?,int $retry_interval = false ,bool $status = ?,callable $failure_callback = ?)
|