Memcached

目次

Memcached クラス

はじめに

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

クラス概要

Memcached
class Memcached {
/* メソッド */
public __construct(stringnull $persistent_id = null, callablenull $callback = null, stringnull $connection_str = null)
public bool add(string $key, mixed $value, int $expiration = 0)
public bool addByKey(
    string $server_key,
    string $key,
    mixed $value,
    int $expiration = 0
)
public bool addServer(string $host, int $port, int $weight = 0)
public bool addServers(array $servers)
public boolnull append(string $key, string $value)
public boolnull appendByKey(string $server_key, string $key, string $value)
public bool cas(
    stringintfloat $cas_token,
    string $key,
    mixed $value,
    int $expiration = 0
)
public bool casByKey(
    stringintfloat $cas_token,
    string $server_key,
    string $key,
    mixed $value,
    int $expiration = 0
)
public intfalse decrement(
    string $key,
    int $offset = 1,
    int $initial_value = 0,
    int $expiry = 0
)
public intfalse decrementByKey(
    string $server_key,
    string $key,
    int $offset = 1,
    int $initial_value = 0,
    int $expiry = 0
)
public bool delete(string $key, int $time = 0)
public bool deleteByKey(string $server_key, string $key, int $time = 0)
public array deleteMulti(array $keys, int $time = 0)
public array deleteMultiByKey(string $server_key, array $keys, int $time = 0)
public arrayfalse fetch()
public arrayfalse fetchAll()
public bool flush(int $delay = 0)
public mixed get(string $key, callablenull $cache_cb = null, int $get_flags = 0)
public arrayfalse getAllKeys()
public mixed getByKey(
    string $server_key,
    string $key,
    callablenull $cache_cb = null,
    int $get_flags = 0
)
public bool getDelayed(array $keys, bool $with_cas = false, callablenull $value_cb = null)
public bool getDelayedByKey(
    string $server_key,
    array $keys,
    bool $with_cas = false,
    callablenull $value_cb = null
)
public arrayfalse getMulti(array $keys, int $get_flags = 0)
public arrayfalse getMultiByKey(string $server_key, array $keys, int $get_flags = 0)
public mixed getOption(int $option)
public int getResultCode()
public string getResultMessage()
public arrayfalse getServerByKey(string $server_key)
public array getServerList()
public arrayfalse getStats(stringnull $type = null)
public arrayfalse getVersion()
public intfalse increment(
    string $key,
    int $offset = 1,
    int $initial_value = 0,
    int $expiry = 0
)
public intfalse incrementByKey(
    string $server_key,
    string $key,
    int $offset = 1,
    int $initial_value = 0,
    int $expiry = 0
)
public bool isPersistent()
public bool isPristine()
public boolnull prepend(string $key, string $value)
public boolnull prependByKey(string $server_key, string $key, string $value)
public bool quit()
public bool replace(string $key, mixed $value, int $expiration = 0)
public bool replaceByKey(
    string $server_key,
    string $key,
    mixed $value,
    int $expiration = 0
)
public bool resetServerList()
public bool set(string $key, mixed $value, int $expiration = 0)
public bool setByKey(
    string $server_key,
    string $key,
    mixed $value,
    int $expiration = 0
)
public bool setMulti(array $items, int $expiration = 0)
public bool setMultiByKey(string $server_key, array $items, int $expiration = 0)
public bool setOption(int $option, mixed $value)
public bool setOptions(array $options)
public bool setSaslAuthData(string $username, string $password)
public bool touch(string $key, int $expiration = 0)
public bool touchByKey(string $server_key, string $key, int $expiration = 0)
}

MemcachedException クラス

はじめに

クラス概要

MemcachedException
class MemcachedException extends RuntimeException {
/* 継承したプロパティ */
protected string $message = "";
private string $string = "";
protected int $code;
protected string $file = "";
protected int $line;
private array $trace = [];
private Throwablenull $previous = null;
/* 継承したメソッド */
final public string Exception::getMessage()
final public Throwablenull Exception::getPrevious()
final public int Exception::getCode()
final public string Exception::getFile()
final public int Exception::getLine()
final public array Exception::getTrace()
final public string Exception::getTraceAsString()
public string Exception::__toString()
private void Exception::__clone()
}