Overview

Namespaces

  • NGS
    • Client
      • Exception
    • Converter
    • Patterns
  • PHP

Classes

  • DateTime
  • DateTimeZone
  • Memcached

Exceptions

  • Exception
  • InvalidArgumentException
  • LogicException
  • Overview
  • Namespace
  • Class
  • Tree

Class Memcached

PHP Extension: Memcached
Documented at php.net
Methods summary
public
# __construct( mixed $persistent_id )
public
# getResultCode( )
public
# getResultMessage( )
public
# get( mixed $key, mixed $cache_cb, mixed & $cas_token )
public
# getByKey( mixed $server_key, mixed $key, mixed $cache_cb, mixed & $cas_token )
public
# getMulti( array $keys, mixed & $cas_tokens, mixed $flags )
public
# getMultiByKey( mixed $server_key, array $keys, mixed & $cas_tokens, mixed $flags )
public
# getDelayed( array $keys, mixed $with_cas, mixed $value_cb )
public
# getDelayedByKey( mixed $server_key, array $keys, mixed $with_cas, mixed $value_cb )
public
# fetch( )
public
# fetchAll( )
public
# set( mixed $key, mixed $value, mixed $expiration )
public
# setByKey( mixed $server_key, mixed $key, mixed $value, mixed $expiration )
public
# setMulti( array $items, mixed $expiration )
public
# setMultiByKey( mixed $server_key, array $items, mixed $expiration )
public
# cas( mixed $cas_token, mixed $key, mixed $value, mixed $expiration )
public
# casByKey( mixed $cas_token, mixed $server_key, mixed $key, mixed $value, mixed $expiration )
public
# add( mixed $key, mixed $value, mixed $expiration )
public
# addByKey( mixed $server_key, mixed $key, mixed $value, mixed $expiration )
public
# append( mixed $key, mixed $value, mixed $expiration )
public
# appendByKey( mixed $server_key, mixed $key, mixed $value, mixed $expiration )
public
# prepend( mixed $key, mixed $value, mixed $expiration )
public
# prependByKey( mixed $server_key, mixed $key, mixed $value, mixed $expiration )
public
# replace( mixed $key, mixed $value, mixed $expiration )
public
# replaceByKey( mixed $server_key, mixed $key, mixed $value, mixed $expiration )
public
# delete( mixed $key, mixed $time )
public
# deleteByKey( mixed $server_key, mixed $key, mixed $time )
public
# increment( mixed $key, mixed $offset )
public
# decrement( mixed $key, mixed $offset )
public
# addServer( mixed $host, mixed $port, mixed $weight )
public
# addServers( array $servers )
public
# getServerList( )
public
# getServerByKey( mixed $server_key )
public
# getStats( )
public
# getVersion( )
public
# flush( mixed $delay )
public
# getOption( mixed $option )
public
# setOption( mixed $option, mixed $value )
Constants summary
integer OPT_COMPRESSION -1001
#
integer OPT_PREFIX_KEY -1002
#
integer OPT_SERIALIZER -1003
#
integer HAVE_IGBINARY 0
#
integer HAVE_JSON 1
#
integer OPT_HASH 2
#
integer HASH_DEFAULT 0
#
integer HASH_MD5 1
#
integer HASH_CRC 2
#
integer HASH_FNV1_64 3
#
integer HASH_FNV1A_64 4
#
integer HASH_FNV1_32 5
#
integer HASH_FNV1A_32 6
#
integer HASH_HSIEH 7
#
integer HASH_MURMUR 8
#
integer OPT_DISTRIBUTION 9
#
integer DISTRIBUTION_MODULA 0
#
integer DISTRIBUTION_CONSISTENT 1
#
integer OPT_LIBKETAMA_COMPATIBLE 16
#
integer OPT_BUFFER_WRITES 10
#
integer OPT_BINARY_PROTOCOL 18
#
integer OPT_NO_BLOCK 0
#
integer OPT_TCP_NODELAY 1
#
integer OPT_SOCKET_SEND_SIZE 4
#
integer OPT_SOCKET_RECV_SIZE 5
#
integer OPT_CONNECT_TIMEOUT 14
#
integer OPT_RETRY_TIMEOUT 15
#
integer OPT_SEND_TIMEOUT 19
#
integer OPT_RECV_TIMEOUT 20
#
integer OPT_POLL_TIMEOUT 8
#
integer OPT_CACHE_LOOKUPS 6
#
integer OPT_SERVER_FAILURE_LIMIT 21
#
integer RES_SUCCESS 0
#
integer RES_FAILURE 1
#
integer RES_HOST_LOOKUP_FAILURE 2
#
integer RES_UNKNOWN_READ_FAILURE 7
#
integer RES_PROTOCOL_ERROR 8
#
integer RES_CLIENT_ERROR 9
#
integer RES_SERVER_ERROR 10
#
integer RES_WRITE_FAILURE 5
#
integer RES_DATA_EXISTS 12
#
integer RES_NOTSTORED 14
#
integer RES_NOTFOUND 16
#
integer RES_PARTIAL_READ 18
#
integer RES_SOME_ERRORS 19
#
integer RES_NO_SERVERS 20
#
integer RES_END 21
#
integer RES_ERRNO 26
#
integer RES_BUFFERED 32
#
integer RES_TIMEOUT 31
#
integer RES_BAD_KEY_PROVIDED 33
#
integer RES_CONNECTION_SOCKET_CREATE_FAILURE 11
#
integer RES_PAYLOAD_FAILURE -1001
#
integer SERIALIZER_PHP 1
#
integer SERIALIZER_IGBINARY 2
#
integer SERIALIZER_JSON 3
#
integer GET_PRESERVE_ORDER 1
#
API documentation generated by ApiGen 2.8.0