GoLang Memcache::flush

request it (288)
GoLang replacement for PHP's Memcache::flush [edit | history]

Do you know a GoLang replacement for PHP's Memcache::flush? Write it!

PHP Memcache::flush

PHP original manual for Memcache::flush [ show | php.net ]


(PECL memcache >= 1.0.0)

Memcache::flushFlush all existing items at the server


bool Memcache::flush ( void )

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.

Return Values

Returns TRUE on success or FALSE on failure.


Example #1 Memcache::flush() example


/* procedural API */
$memcache_obj memcache_connect('memcache_host'11211);


/* OO API */

$memcache_obj = new Memcache;