Memcached クラス

(PECL memcached >= 0.1.0)

はじめに

memcached サーバー群への接続を表します。

クラス概要

Memcached {
public__construct(string$persistent_id = ?)
publicadd(string$key, mixed$value, int$expiration = ?): bool
publicaddByKey(
    string$server_key,
    string$key,
    mixed$value,
    int$expiration = ?
): bool
publicaddServer(string$host, int$port, int$weight = 0): bool
publicaddServers(array$servers): bool
publicappend(string$key, string$value): bool
publicappendByKey(string$server_key, string$key, string$value): bool
publiccas(
    float$cas_token,
    string$key,
    mixed$value,
    int$expiration = ?
): bool
publiccasByKey(
    float$cas_token,
    string$server_key,
    string$key,
    mixed$value,
    int$expiration = ?
): bool
publicdecrement(
    string$key,
    int$offset = 1,
    int$initial_value = 0,
    int$expiry = 0
): int|false
publicdecrementByKey(
    string$server_key,
    string$key,
    int$offset = 1,
    int$initial_value = 0,
    int$expiry = 0
): int|false
publicdelete(string$key, int$time = 0): bool
publicdeleteByKey(string$server_key, string$key, int$time = 0): bool
publicdeleteMulti(array$keys, int$time = 0): array
publicdeleteMultiByKey(string$server_key, array$keys, int$time = 0): bool
publicfetch(): array
publicfetchAll(): array|false
publicflush(int$delay = 0): bool
publicget(string$key, callable$cache_cb = ?, int$$flags = ?): mixed
publicgetAllKeys(): array|false
publicgetByKey(
    string$server_key,
    string$key,
    callable$cache_cb = ?,
    int$flags = ?
): mixed
publicgetDelayed(array$keys, bool$with_cas = ?, callable$value_cb = ?): bool
publicgetDelayedByKey(
    string$server_key,
    array$keys,
    bool$with_cas = ?,
    callable$value_cb = ?
): bool
publicgetMulti(array$keys, int$flags = ?): mixed
publicgetMultiByKey(string$server_key, array$keys, int$flags = ?): array|false
publicgetOption(int$option): mixed
publicgetResultCode(): int
publicgetResultMessage(): string
publicgetServerByKey(string$server_key): array
publicgetServerList(): array
publicgetStats(): array|false
publicgetVersion(): array
publicincrement(
    string$key,
    int$offset = 1,
    int$initial_value = 0,
    int$expiry = 0
): int|false
publicincrementByKey(
    string$server_key,
    string$key,
    int$offset = 1,
    int$initial_value = 0,
    int$expiry = 0
): int|false
publicisPersistent(): bool
publicisPristine(): bool
publicprepend(string$key, string$value): bool
publicprependByKey(string$server_key, string$key, string$value): bool
publicquit(): bool
publicreplace(string$key, mixed$value, int$expiration = ?): bool
publicreplaceByKey(
    string$server_key,
    string$key,
    mixed$value,
    int$expiration = ?
): bool
publicresetServerList(): bool
publicset(string$key, mixed$value, int$expiration = ?): bool
publicsetByKey(
    string$server_key,
    string$key,
    mixed$value,
    int$expiration = ?
): bool
publicsetMulti(array$items, int$expiration = ?): bool
publicsetMultiByKey(string$server_key, array$items, int$expiration = ?): bool
publicsetOption(int$option, mixed$value): bool
publicsetOptions(array$options): bool
publicsetSaslAuthData(string$username, string$password): void
publictouch(string$key, int$expiration): bool
publictouchByKey(string$server_key, string$key, int$expiration): bool
}

目次