Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Memcached flush_all Command

Memcached flush_all Command

The Memcached flush_all command is used to clear all key=>value (key=>value) pairs.

This command provides an optional parameter time, used to perform the cache-clearing operation after a specified time.

Syntax:

The basic syntax format of the flush_all command is as follows:



flush_all [time] [noreply]

Example

Clear cache:



set runoob 0 900 9

memcached

STORED

get runoob

VALUE runoob 0 9

memcached

END

flush_all

OK

get runoob

END