« 基本的な使用法
Memcache::add »

Memcache クラス

(PECL memcache >= 0.2.0)

はじめに

memcache サーバーへの接続をあらわします。

クラス概要

class Memcache {
function add(
    string $key,
    mixed $var,
    int $flag = ?,
    int $expire = ?
): bool
function addServer(
    string $host,
    int $port = 11211,
    bool $persistent = ?,
    int $weight = ?,
    int $timeout = ?,
    int $retry_interval = ?,
    bool $status = ?,
    callable $failure_callback = ?,
    int $timeoutms = ?
): bool
function close(): bool
function connect(string $host, int $port = ?, int $timeout = ?): bool
function decrement(string $key, int $value = 1): int|false
function delete(string $key, int $exptime = 0): bool
function flush(): bool
function get(string $key, int &$flags = ?): string
function getExtendedStats(string $type = ?, int $slabid = ?, int $limit = 100): array
function getServerStatus(string $host, int $port = 11211): int
function getStats(string $type = ?, int $slabid = ?, int $limit = 100): array|false
function getVersion(): string|false
function increment(string $key, int $value = 1): int|false
function pconnect(string $host, int $port = ?, int $timeout = ?): bool
function replace(
    string $key,
    mixed $var,
    int $flag = ?,
    int $expire = ?
): bool
function set(
    string $key,
    mixed $var,
    int $flag = ?,
    int $expire = ?
): bool
function setCompressThreshold(int $threshold, float $min_savings = ?): bool
function setServerParams(
    string $host,
    int $port = 11211,
    int $timeout = ?,
    int $retry_interval = false,
    bool $status = ?,
    callable $failure_callback = ?
): bool
}

目次

関連キーワード:
Memcache   サーバー   項目   host   port   接続   timeout   memcached   mixed   flag   expire   memcache   addServer   retry   interval   status   callable   failure   callback   connect   decrement   delete   flush   getExtendedStats   type
関連する関数・ページ:
book.memcache   memcache.set   memcache.add   memcache.connect   memcache.setserverparams   memcache.addserver