11111

Memcache::close

Пред.

След.

Memcache::close

(no version information, might be only in CVS)Memcache::close -- Close memcached server connection

Description

bool Memcache::close (void)

- Memcache::close() closes connection to memcached

server. This function doesn't close persistent connections, which are

closed only during web-server shutdown/restart.

- Also you can use memcache_close() function.

See example below.

Пример 1. Memcache::close() example

<?php

/* procedural API */

$memcache_obj = memcache_connect('memcache_host', 11211);

/*

do something here..

*/

memcache_close($memcache_obj);

/* OO API */

$memcache_obj = new Memcache;

$memcache_obj->connect('memcache_host', 11211);

/*

do something here..

*/

$memcache_obj->close();

?>

- Memcache::close() returns FALSE if an error occured.

- See also

Memcache::connect(),

Memcache::pconnect().

Пред.

Начало

След.

Memcache::add

Уровень выше

Memcache::connect 22222

Free Web Hosting