Memcache類

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
close(): bool
connect(string $host, int $port = ?, int $timeout = ?): bool
decrement(string $key, int $value = 1): int
delete(string $key, int $timeout = 0): bool
flush(): bool
get(string $key, int &$flags = ?): string
getExtendedStats(string $type = ?, int $slabid = ?, int $limit = 100): array
getServerStatus(string $host, int $port = 11211): int
getStats(string $type = ?, int $slabid = ?, int $limit = 100): array
getVersion(): string
increment(string $key, int $value = 1): int
pconnect(string $host, int $port = ?, int $timeout = ?): mixed
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 = ?,
    callback $failure_callback = ?
): bool
}

目錄

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *