The Memcached class
Ââåäåíèå
Represents a connection to a set of memcached servers.
Class synopsis
Memcached
Memcached
{
public bool add
( string $key
, mixed $value
[, int $expiration
] )
public bool addByKey
( string $server_key
, string $key
, mixed $value
[, int $expiration
] )
public bool addServer
( string $host
, int $port
[, int $weight
] )
public bool append
( string $key
, string $value
)
public bool appendByKey
( string $server_key
, string $key
, string $value
)
public bool cas
( double $cas_token
, string $key
, mixed $value
[, int $expiration
] )
public bool casByKey
( double $cas_token
, string $server_key
, string $key
, mixed $value
[, int $expiration
] )
public bool decrement
( string $key
[, int $offset
] )
public bool delete
( string $key
[, int $time
] )
public bool deleteByKey
( string $server_key
, string $key
[, int $time
] )
public mixed fetch
( void
)
public bool flush
([ int $delay
] )
public mixed get
( string $key
[, callback $cache_cb
[, double &$cas_token
]] )
public mixed getByKey
( string $server_key
, string $key
[, callback $cache_cb
[, double &$cas_token
]] )
public mixed getMulti
( array $keys
[, array &$cas_tokens
] )
public void getMultiByKey
( string $server_key
, array $keys
[, string &$cas_tokens
] )
public bool increment
( string $key
[, int $offset
] )
public bool prepend
( string $key
, string $value
)
public bool prependByKey
( string $server_key
, string $key
, string $value
)
public bool replace
( string $key
, mixed $value
[, int $expiration
] )
public bool replaceByKey
( string $server_key
, string $key
, mixed $value
[, int $expiration
] )
public bool set
( string $key
, mixed $value
[, int $expiration
] )
public bool set
( string $server_key
, string $key
, mixed $value
[, int $expiration
] )
public bool setMulti
( array $items
[, int $expiration
] )
public bool setMultiByKey
( string $server_key
, array $items
[, int $expiration
] )
}
Ñîäåðæàíèå
|
|