Memcached::__construct

(PECL memcached >= 0.1.0)

Memcached::__constructCreate a Memcached instance

Beschreibung

publicMemcached::__construct(?string$persistent_id = null, ?callable$callback = null, ?string$connection_str = null)

Creates a Memcached instance representing the connection to the memcache servers.

Warnung

Diese Funktion ist bis jetzt nicht dokumentiert. Es steht nur die Liste der Parameter zur Verfügung.

Parameter-Liste

persistent_id

By default the Memcached instances are destroyed at the end of the request. To create an instance that persists between requests, use persistent_id to specify a unique ID for the instance. All instances created with the same persistent_id will share the same connection.

callback

connection_str

Beispiele

Beispiel #1 Creating a Memcached object

<?php

$m = new Memcached();
echo
get_class($m);


$m2 = new Memcached('story_pool');
$m3 = new Memcached('story_pool');


?>
To Top