Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

memcache.connect(3) [php man page]

MEMCACHE.CONNECT(3)							 1						       MEMCACHE.CONNECT(3)

Memcache::connect - Open memcached server connection

SYNOPSIS
bool Memcache::connect (string $host, [int $port], [int $timeout]) DESCRIPTION
Memcache.connect(3) establishes a connection to the memcached server. The connection, which was opened using Memcache.connect(3) will be automatically closed at the end of script execution. Also you can close it with Memcache.close(3). Also you can use memcache_connect(3) function. PARAMETERS
o $host - Point to the host where memcached is listening for connections. This parameter may also specify other transports like unix:///path/to/memcached.sock to use UNIX domain sockets, in this case $port must also be set to 0. o $port - Point to the port where memcached is listening for connections. Set this parameter to 0 when using UNIX domain sockets. Please note: $port defaults to memcache.default_port if not specified. For this reason it is wise to specify the port explicitly in this method call. o $timeout - Value in seconds which will be used for connecting to the daemon. Think twice before changing the default value of 1 second - you can lose all the advantages of caching if your connection is too slow. NOTES
Warning When the $port is unspecified, this method defaults to the value set of the PHP ini directive memcache.default_port If this value was changed elsewhere in your application it might lead to unexpected results: for this reason it is wise to always specify the port explicitly in this method call. RETURN VALUES
Returns TRUE on success or FALSE on failure. EXAMPLES
Example #1 Memcache.connect(3) example <?php /* procedural API */ $memcache_obj = memcache_connect('memcache_host', 11211); /* OO API */ $memcache = new Memcache; $memcache->connect('memcache_host', 11211); ?> SEE ALSO
Memcache.pconnect(3), Memcache.close(3). PHP Documentation Group MEMCACHE.CONNECT(3)

Check Out this Related Man Page

KUMO-GATEWAY(1) 					      General Commands Manual						   KUMO-GATEWAY(1)

NAME
kumo-gateway - kumofs gateway daemon SYNOPSIS
kumo-gateway -m <addr[:port]> -p <addr[:port]> [-t port] [-b port] [-c port] DESCRIPTION
kumo-gateway receives requests from applications and relays it to the kumo-servers. Run this daemon on the hosts that runs applications that uses kumofs. OPTIONS
-m <addr[:port=19700]> --manager1 address of manager 1 -p <addr[:port=19700]> --manager2 address of manager 2 -lc --local-cache local cache (Tokyo Cabinet abstract database) -t <[addr:]port=11411> --memproto-text memcached text protocol listen port -b <[addr:]port=11511> --memproto-binary memcached binary protocol listen port -c <[addr:]port=11611> --cloudy asynchronous memcached binary protocol listen port -F --memproto-save-flag save flags on memcached text protocol -As --async-replicate-set send response without waiting replication on set -Ad --async-replicate-delete send response without waiting replication on delete -G <number=5> --get-retry get retry limit -S <number=20> --set-retry set retry limit -D <number=20> --delete-retry delete retry limit -rn <number=4> --renew-threshold hash space renew threshold -k <number=2> --keepalive-interval keepalive interval in seconds -Ys <number=1> --connect-timeout connect timeout time in seconds -Yn <number=4> --connect-retry-limit connect retry limit -Ci <number=2> --clock-interval clock interval in seconds -TW <number=2> --write-threads number of threads for asynchronous writing -TR <number=4> --read-threads number of threads for asynchronous reading -o <path.log> --log output logs to the file -g <path.mpac> --binary-log enable binary log -v --verbose -d <path.pid> --daemon EXAMPLE
[on cli1 ]$ kumo-gateway -v -m mgr1 -p mgr2 -t 11211 -As -Ad [localhost]$ kumo-gateway -v -m localhost -t 11211 -d kumo-gateway.pid SEE ALSO
kumolog(1). kumo-gateway July 2009 KUMO-GATEWAY(1)
Man Page