mirror of
https://github.com/php-win-ext/php-memcached.git
synced 2026-03-24 00:52:18 +01:00
First import
This commit is contained in:
140
memcached-api.php
Normal file
140
memcached-api.php
Normal file
@@ -0,0 +1,140 @@
|
||||
<?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_BUFER_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_CONNECT_TIMEOUT;
|
||||
|
||||
const OPT_RETRY_TIMEOUT;
|
||||
|
||||
const OPT_SND_TIMEOUT;
|
||||
|
||||
const OPT_RCV_TIMEOUT;
|
||||
|
||||
const OPT_POLL_TIMEOUT;
|
||||
|
||||
|
||||
/**
|
||||
* Class options.
|
||||
*/
|
||||
const OPT_COMPRESSION;
|
||||
|
||||
const OPT_PREFIX_KEY;
|
||||
|
||||
|
||||
public function __construct( $locale ) {}
|
||||
|
||||
public function get( $key, $cache_cb = null ) {}
|
||||
|
||||
public function getByKey( $server_key, $key, $cache_cb = null ) {}
|
||||
|
||||
public function getDelayed( $array $cache_cb = null, $value_cb = null ) {}
|
||||
|
||||
public function getDelayedByKey( $server_key, $key $cache_cb = null, $value_cb = null ) {}
|
||||
|
||||
public function fetch( ) {}
|
||||
|
||||
public function fetchAll( ) {}
|
||||
|
||||
public function set( $key, $value, $expiration ) {}
|
||||
|
||||
public function setByKey( $server_key, $key, $value, $expiration ) {}
|
||||
|
||||
public function setMulti( $array, $expiration ) {}
|
||||
|
||||
public function setMultiByKey( $server_key, $array, $expiration ) {}
|
||||
|
||||
public function getLastTokens( ) {}
|
||||
|
||||
public function cas( $token, $key, $value, $expiration ) {}
|
||||
|
||||
public function casByKey( $token, $server_key, $key, $value, $expiration ) {}
|
||||
|
||||
public function add( $key, $value, $expiration ) {}
|
||||
|
||||
public function addByKey( $server_ke, $key, $value, $expiration ) {}
|
||||
|
||||
public function append( $key, $value, $expiration ) {}
|
||||
|
||||
public function appendByKey( $server_ke, $key, $value, $expiration ) {}
|
||||
|
||||
public function prepend( $key, $value, $expiration ) {}
|
||||
|
||||
public function prependByKey( $server_key, $key, $value, $expiration ) {}
|
||||
|
||||
public function replace( $key, $value, $expiration ) {}
|
||||
|
||||
public function replaceByKey( $serve_key, $key, $value, $expiration ) {}
|
||||
|
||||
public function delete( $key, $expiration ) {}
|
||||
|
||||
public function deleteByKey( $key, $expiration ) {}
|
||||
|
||||
public function increment( $key, $offset ) {}
|
||||
|
||||
public function decrement( $key, $offset ) {}
|
||||
|
||||
public function getOption( $option ) {}
|
||||
|
||||
public function setOption( $option, $value ) {}
|
||||
|
||||
public function addServer( $host, $port, $weight = 0 );
|
||||
|
||||
public function getServerList ( ) {}
|
||||
|
||||
public function getServerByKey ( $server_key ) {}
|
||||
|
||||
}
|
||||
|
||||
class MemcachedException extends Exception {
|
||||
|
||||
function __construct( $errmsg = "", $errcode = 0) {}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user