Freelance PHP programmer India
|
Freelance web developer india
|
Web development India
|
web developer CV india
|
Compiling PHP and Apache 2 from source on Linux
Examples
Memcached::add
Memcached
PHP Manual
The Memcached class
Introduction
Description of the class.
Class synopsis
Memcached
Memcached
{
/* Constants */
const
integer
Memcached::OPT_COMPRESSION
=-1001
;
const
integer
Memcached::OPT_PREFIX_KEY
=-1002
;
const
integer
Memcached::OPT_HASH
=2
;
const
integer
Memcached::HASH_DEFAULT
=0
;
const
integer
Memcached::HASH_MD5
=1
;
const
integer
Memcached::HASH_CRC
=2
;
const
integer
Memcached::HASH_FNV1_64
=3
;
const
integer
Memcached::HASH_FNV1A_64
=4
;
const
integer
Memcached::HASH_FNV1_32
=5
;
const
integer
Memcached::HASH_FNV1A_32
=6
;
const
integer
Memcached::HASH_HSIEH
=7
;
const
integer
Memcached::HASH_MURMUR
=8
;
const
integer
Memcached::OPT_DISTRIBUTION
=9
;
const
integer
Memcached::DISTRIBUTION_MODULA
=0
;
const
integer
Memcached::DISTRIBUTION_CONSISTENT
=1
;
const
integer
Memcached::OPT_BUFFER_WRITES
=10
;
const
integer
Memcached::OPT_BINARY_PROTOCOL
=18
;
const
integer
Memcached::OPT_NO_BLOCK
=0
;
const
integer
Memcached::OPT_TCP_NODELAY
=1
;
const
integer
Memcached::OPT_SOCKET_SEND_SIZE
=4
;
const
integer
Memcached::OPT_SOCKET_RECV_SIZE
=5
;
const
integer
Memcached::OPT_CONNECT_TIMEOUT
=14
;
const
integer
Memcached::OPT_RETRY_TIMEOUT
=15
;
const
integer
Memcached::OPT_SEND_TIMEOUT
=19
;
const
integer
Memcached::OPT_RECV_TIMEOUT
=15
;
const
integer
Memcached::OPT_POLL_TIMEOUT
=8
;
const
integer
Memcached::OPT_CACHE_LOOKUPS
=6
;
const
integer
Memcached::OPT_SERVER_FAILURE_LIMIT
=21
;
const
integer
Memcached::RES_SUCCESS
=0
;
const
integer
Memcached::RES_FAILURE
=1
;
const
integer
Memcached::RES_HOST_LOOKUP_FAILURE
=2
;
const
integer
Memcached::RES_UNKNOWN_READ_FAILURE
=7
;
const
integer
Memcached::RES_PROTOCOL_ERROR
=8
;
const
integer
Memcached::RES_CLIENT_ERROR
=9
;
const
integer
Memcached::RES_SERVER_ERROR
=10
;
const
integer
Memcached::RES_WRITE_FAILURE
=5
;
const
integer
Memcached::RES_DATA_EXISTS
=12
;
const
integer
Memcached::RES_NOTSTORED
=14
;
const
integer
Memcached::RES_NOTFOUND
=16
;
const
integer
Memcached::RES_PARTIAL_READ
=18
;
const
integer
Memcached::RES_SOME_ERRORS
=19
;
const
integer
Memcached::RES_NO_SERVERS
=20
;
const
integer
Memcached::RES_END
=21
;
const
integer
Memcached::RES_ERRNO
=25
;
const
integer
Memcached::RES_BUFFERED
=31
;
const
integer
Memcached::RES_TIMEOUT
=30
;
const
integer
Memcached::RES_BAD_KEY_PROVIDED
=32
;
const
integer
Memcached::RES_CONNECTION_SOCKET_CREATE_FAILURE
=11
;
const
integer
Memcached::RES_PAYLOAD_FAILURE
=-1001
;
/* Methods */
public
void
add
(
string
$key
,
string
$value
[,
string
$expiration
] )
public
void
addByKey
(
string
$server_key
,
string
$key
,
string
$value
[,
string
$expiration
] )
public
void
addServer
(
string
$host
,
string
$port
[,
string
$weight
] )
public
void
append
(
string
$key
,
string
$value
[,
string
$expiration
] )
public
void
appendByKey
(
string
$server_key
,
string
$key
,
string
$value
[,
string
$expiration
] )
public
void
cas
(
string
$cas_token
,
string
$key
,
string
$value
[,
string
$expiration
] )
public
void
casByKey
(
string
$cas_token
,
string
$server_key
,
string
$key
,
string
$value
[,
string
$expiration
] )
__construct
([
string
$persistent_id
] )
public
void
decrement
(
string
$key
[,
string
$offset
] )
public
void
delete
(
string
$key
[,
string
$expiration
] )
public
void
deleteByKey
(
string
$server_key
,
string
$key
[,
string
$expiration
] )
public
void
fetch
(
void
)
public
void
fetchAll
(
void
)
public
void
flush
([
string
$expiration
] )
public
void
get
(
string
$key
[,
string
$cache_cb
[,
string
&$cas_token
]] )
public
void
getByKey
(
string
$server_key
,
string
$key
[,
string
$cache_cb
[,
string
&$cas_token
]] )
public
void
getDelayed
(
array
$keys
[,
string
$with_cas
[,
string
$value_cb
]] )
public
void
getDelayedByKey
(
string
$server_key
,
array
$keys
[,
string
$with_cas
[,
string
$value_cb
]] )
public
void
getMulti
(
array
$keys
[,
string
&$cas_tokens
] )
public
void
getMultiByKey
(
string
$server_key
,
array
$keys
[,
string
&$cas_tokens
] )
public
void
getOption
(
string
$option
)
public
void
getResultCode
(
void
)
public
void
getServerByKey
(
string
$server_key
)
public
void
getServerList
(
void
)
public
void
getStats
(
void
)
public
void
increment
(
string
$key
[,
string
$offset
] )
public
void
prepend
(
string
$key
,
string
$value
[,
string
$expiration
] )
public
void
prependByKey
(
string
$server_key
,
string
$key
,
string
$value
[,
string
$expiration
] )
public
void
replace
(
string
$key
,
string
$value
[,
string
$expiration
] )
public
void
replaceByKey
(
string
$server_key
,
string
$key
,
string
$value
[,
string
$expiration
] )
public
void
set
(
string
$key
,
string
$value
[,
string
$expiration
] )
public
void
setByKey
(
string
$server_key
,
string
$key
,
string
$value
[,
string
$expiration
] )
public
void
setMulti
(
array
$entries
[,
string
$expiration
] )
public
void
setMultiByKey
(
string
$server_key
,
array
$entries
[,
string
$expiration
] )
public
void
setOption
(
string
$option
,
string
$value
)
}
Table of Contents
Memcached::add
— The add purpose
Memcached::addByKey
— The addByKey purpose
Memcached::addServer
— The addServer purpose
Memcached::append
— The append purpose
Memcached::appendByKey
— The appendByKey purpose
Memcached::cas
— The cas purpose
Memcached::casByKey
— The casByKey purpose
Memcached::__construct
— The __construct purpose
Memcached::decrement
— The decrement purpose
Memcached::delete
— The delete purpose
Memcached::deleteByKey
— The deleteByKey purpose
Memcached::fetch
— The fetch purpose
Memcached::fetchAll
— The fetchAll purpose
Memcached::flush
— The flush purpose
Memcached::get
— The get purpose
Memcached::getByKey
— The getByKey purpose
Memcached::getDelayed
— The getDelayed purpose
Memcached::getDelayedByKey
— The getDelayedByKey purpose
Memcached::getMulti
— The getMulti purpose
Memcached::getMultiByKey
— The getMultiByKey purpose
Memcached::getOption
— The getOption purpose
Memcached::getResultCode
— The getResultCode purpose
Memcached::getServerByKey
— The getServerByKey purpose
Memcached::getServerList
— The getServerList purpose
Memcached::getStats
— The getStats purpose
Memcached::increment
— The increment purpose
Memcached::prepend
— The prepend purpose
Memcached::prependByKey
— The prependByKey purpose
Memcached::replace
— The replace purpose
Memcached::replaceByKey
— The replaceByKey purpose
Memcached::set
— The set purpose
Memcached::setByKey
— The setByKey purpose
Memcached::setMulti
— The setMulti purpose
Memcached::setMultiByKey
— The setMultiByKey purpose
Memcached::setOption
— The setOption purpose
Examples
Memcached::add
Memcached
PHP Manual