Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

Memcached flush_all command


May 17, 2021 Memcached



The Memcached flush_all command is used to clean up all key-value (key-value) pairs in the cache.

The command provides an optional parameter, time, for cleaning up the cache after a set time.

Grammar:

flush_all syntax format of the command is as follows:

flush_all [time] [noreply]

Instance

Clean up the cache:

set w3cschool 0 900 9
memcached
STORED
get w3cschool
VALUE w3cschool 0 9
memcached
END
flush_all
OK
get w3cschool
END