Skip to content
This repository
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 281 lines (151 sloc) 5.053 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 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280
<?php

/**
* Memcached class.
*/

class Memcached {
/**
* Libmemcached behavior options.
*/

const OPT_HASH;

const OPT_HASH_DEFAULT;

const HASH_MD5;

const HASH_CRC;

const HASH_FNV1_64;

const HASH_FNV1A_64;

const HASH_FNV1_32;

const HASH_FNV1A_32;

const HASH_HSIEH;

const HASH_MURMUR;

const OPT_DISTRIBUTION;

const DISTRIBUTION_MODULA;

const DISTRIBUTION_CONSISTENT;

const 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;

const OPT_AUTO_EJECT_HOSTS;

const OPT_NUMBER_OF_REPLICAS;

const OPT_NOREPLY;

const OPT_VERIFY_KEY;

const OPT_RANDOMIZE_REPLICA_READS;


/**
* Class parameters
*/
const HAVE_JSON;

const HAVE_IGBINARY;

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

const OPT_COMPRESSION_TYPE;

const OPT_PREFIX_KEY;

/**
* Serializer constants
*/
const SERIALIZER_PHP;

const SERIALIZER_IGBINARY;

const SERIALIZER_JSON;

const SERIALIZER_JSON_ARRAY;

/**
* Compression types
*/
const COMPRESSION_TYPE_FASTLZ;

const COMPRESSION_TYPE_ZLIB;

/**
* Flags
*/
const GET_PRESERVE_ORDER;

/**
* Return values
*/
const GET_ERROR_RETURN_VALUE;

const RES_PAYLOAD_FAILURE;

const RES_SUCCESS;

const RES_FAILURE;

const RES_HOST_LOOKUP_FAILURE;

const RES_UNKNOWN_READ_FAILURE;

const RES_PROTOCOL_ERROR;

const RES_CLIENT_ERROR;

const RES_SERVER_ERROR;

const RES_WRITE_FAILURE;

const RES_DATA_EXISTS;

const RES_NOTSTORED;

const RES_NOTFOUND;

const RES_PARTIAL_READ;

const RES_SOME_ERRORS;

const RES_NO_SERVERS;

const RES_END;

const RES_ERRNO;

const RES_BUFFERED;

const RES_TIMEOUT;

const RES_BAD_KEY_PROVIDED;

const RES_STORED;

const RES_DELETED;

const RES_STAT;

const RES_ITEM;

const RES_NOT_SUPPORTED;

const RES_FETCH_NOTFINISHED;

const RES_SERVER_MARKED_DEAD;

const RES_UNKNOWN_STAT_KEY;

const RES_INVALID_HOST_PROTOCOL;

const RES_MEMORY_ALLOCATION_FAILURE;

const RES_CONNECTION_SOCKET_CREATE_FAILURE;


public function __construct( $persistent_id = '', $on_new_object_cb = null ) {}

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

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

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

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

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 touch( $key, $expiration = 0 ) {}

    public function touchbyKey( $key, $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 ) {}

public function appendByKey( $server_key, $key, $value ) {}

public function prepend( $key, $value ) {}

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

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

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

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

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

public function deleteMulti( array $keys, $expiration = 0 ) {}

public function deleteMultiByKey( $server_key, array $keys, $expiration = 0 ) {}

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

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

public function getOption( $option ) {}

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

public function setOptions( array $options ) {}

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 getVersion( ) {}

public function getResultCode( ) {}

public function getResultMessage( ) {}

public function isPersistent( ) {}

public function isPristine( ) {}

}

class MemcachedException extends Exception {

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

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