Home > PHP > Function > Memcache > Memcache::flush()

Memcache::flush()

Memcache::flush - Flush all existing items at the server

Syntax

bool Memcache::flush ()

Arguments

-

Description

Memcache::flush() immediately invalidates all existing items. Memcache::flush() doesn't actually free any resources, it only marks all the items as expired, so occupied memory will be overwritten by new items. Also you can use memcache_flush() function.

Version

PHP PECL memcache >= 1.0.0

Return value

Returns TRUE on success or FALSE on failure.