Laracon EU Online 2021


(PECL memcache >= 0.4.0)

Memcache::closeClose memcached server connection


Memcache::close ( ) : bool

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.

Valor Retornado

Retorna TRUE em caso de sucesso ou FALSE em caso de falha.


Exemplo #1 Memcache::close() example


/* procedural API */
$memcache_obj memcache_connect('memcache_host'11211);
do something here ..

/* OO API */
$memcache_obj = new Memcache;
do something here ..


Veja Também

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top