Memcache类
(PECL memcache >= 0.2.0)
类摘要
class Memcache
{
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 = ?,
callback $failure_callback = ?,
int $timeoutms = ?):
bool
connect(
string $host,
int $port = ?,
int $timeout = ?):
bool
delete(
string $key,
int $timeout = 0):
bool
get(
string $key,
int &$flags = ?):
string
getStats(
string $type = ?,
int $slabid = ?,
int $limit = 100):
array
replace(
string $key,
mixed $var,
int $flag = ?,
int $expire = ?):
bool
set(
string $key,
mixed $var,
int $flag = ?,
int $expire = ?):
bool
setServerParams(
string $host,
int $port = 11211,
int $timeout = ?,
int $retry_interval = false,
bool $status = ?,
callback $failure_callback = ?):
bool
}
目录