File: /memcached-client.php

Description

This is the PHP client for memcached - a distributed memory cache daemon.

More information is available at http://www.danga.com/memcached/

Usage example:

require_once 'memcached.php';

$mc = new memcached(array( 'servers' => array('127.0.0.1:10000', array('192.0.0.1:10010', 2), '127.0.0.1:10020'), 'debug' => false, 'compress_threshold' => 10240, 'persistant' => true));

$mc->add('key', array('some', 'array')); $mc->replace('key', 'some random string'); $val = $mc->get('key');

Classes defined in this file

CLASS NAME

DESCRIPTION

memcached memcached client class implemented using (p)fsockopen()

Include/Require Statements

Global Variables

Constants

COMPRESSION_SAVINGS (line 85)

COMPRESSION_SAVINGS : 0.20

Minimum savings to store data compressed

MEMCACHE_COMPRESSED (line 78)

MEMCACHE_COMPRESSED : 1<<1

Flag: indicates data is compressed

MEMCACHE_SERIALIZED (line 73)

MEMCACHE_SERIALIZED : 1<<0

Flag: indicates data is serialized

Functions


Documentation generated on Wed, 8 Oct 2003 14:26:57 -0400 by phpDocumentor 1.2.2