Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 154 lines (80 sloc) 3.207 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154
<?php

/**
* Collator class.
*/

class Memcached {

/**
* Libmemcached behavior options.
*/

const OPT_HASH;

const OPT_HASH_DEFAULT;

const OPT_HASH_MD5;

const OPT_HASH_CRC;

const OPT_HASH_FNV1_64;

const OPT_HASH_FNV1A_64;

const OPT_HASH_FNV1_32;

const OPT_HASH_FNV1A_32;

const OPT_HASH_HSIEH;

const OPT_HASH_MURMUR;

const OPT_DISTRIBUTION;

const OPT_DISTRIBUTION_MODULA;

const OPT_DISTRIBUTION_CONSISTENT;

const OPT_LIBKETAMA_COMPATIBLE;

const OPT_BUFFER_REQUESTS;

const OPT_BINARY_PROTOCOL;

const OPT_NO_BLOCK;

const OPT_TCP_NODELAY;

const OPT_SOCKET_SEND_SIZE;

const OPT_SOCKET_RECV_SIZE;

const OPT_CONNECT_TIMEOUT;

const OPT_RETRY_TIMEOUT;

const OPT_SND_TIMEOUT;

const OPT_RCV_TIMEOUT;

const OPT_POLL_TIMEOUT;

const OPT_SERVER_FAILURE_LIMIT;

const OPT_CACHE_LOOKUPS;


/**
* Class options.
*/
const OPT_COMPRESSION;

const OPT_PREFIX_KEY;


public function __construct( $persistent_id = '' ) {}

public function get( $key, &$cas_token = null, $cache_cb = null ) {}

public function getByKey( $server_key, $key, $cache_cb = null ) {}

public function getMulti( array $keys, &$cas_tokens = null ) {}

public function getMultiByKey( $server_key, array $keys, &$cas_tokens = null ) {}

public function getDelayed( array $keys, $with_cas = null, $value_cb = null ) {}

public function getDelayedByKey( $server_key, array $keys, $with_cas = null, $value_cb = null ) {}

public function fetch( ) {}

public function fetchAll( ) {}

public function set( $key, $value, $expiration = 0 ) {}

public function setByKey( $server_key, $key, $value, $expiration = 0 ) {}

public function setMulti( array $items, $expiration = 0 ) {}

public function setMultiByKey( $server_key, array $items, $expiration = 0 ) {}

public function cas( $token, $key, $value, $expiration = 0 ) {}

public function casByKey( $token, $server_key, $key, $value, $expiration = 0 ) {}

public function add( $key, $value, $expiration = 0 ) {}

public function addByKey( $server_key, $key, $value, $expiration = 0 ) {}

public function append( $key, $value, $expiration = 0 ) {}

public function appendByKey( $server_ke, $key, $value, $expiration = 0 ) {}

public function prepend( $key, $value, $expiration = 0 ) {}

public function prependByKey( $server_key, $key, $value, $expiration = 0 ) {}

public function replace( $key, $value, $expiration = 0 ) {}

public function replaceByKey( $serve_key, $key, $value, $expiration = 0 ) {}

public function delete( $key, $time = 0 ) {}

public function deleteByKey( $key, $time = 0 ) {}

public function increment( $key, $offset = 1) {}

public function decrement( $key, $offset = 1) {}

public function getOption( $option ) {}

public function setOption( $option, $value ) {}

public function addServer( $host, $port, $weight = 0 ) {}

public function addServers( array $servers ) {}

public function getServerList( ) {}

public function getServerByKey( $server_key ) {}

public function flush( $delay = 0 ) {}

public function getStats( ) {}

public function getResultCode( ) {}

}

class MemcachedException extends Exception {

function __construct( $errmsg = "", $errcode = 0 ) {}

}
Something went wrong with that request. Please try again.