.\" Man page generated from reStructuredText. . . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .TH "MEMFLUSH" "1" "Feb 01, 2024" "1.1" "libmemcached-awesome" .SH NAME memflush \- libmemcached Documentation .SH SYNOPSIS .sp memflush [options] .sp Reset a server or list of servers .SH DESCRIPTION .sp \fBmemflush\fP resets the contents of \fBmemcached(1)\fP servers. .sp \fBWARNING:\fP .INDENT 0.0 .INDENT 3.5 This means that all data in the specified servers will be deleted. .UNINDENT .UNINDENT .SH OPTIONS .INDENT 0.0 .TP .B \-h|\-\-help Display help. .UNINDENT .INDENT 0.0 .TP .B \-V|\-\-version Display version. .UNINDENT .INDENT 0.0 .TP .B \-q|\-\-quiet Operate quietly. .UNINDENT .INDENT 0.0 .TP .B \-v|\-\-verbose Operate more verbosely. .UNINDENT .INDENT 0.0 .TP .B \-d|\-\-debug See \fI\%\-v|\-\-verbose\fP\&. .UNINDENT .INDENT 0.0 .TP .B \-s|\-\-servers Specify the list of servers as \fIhostname[:port][,hostname[:port]...]\fP\&. .UNINDENT .INDENT 0.0 .TP .B \-n|\-\-non\-blocking Enable non\-blocking operations. .UNINDENT .INDENT 0.0 .TP .B \-N|\-\-tcp\-nodelay Disable Nagle\(aqs algorithm. .UNINDENT .INDENT 0.0 .TP .B \-b|\-\-binary Enable binary protocol. .UNINDENT .INDENT 0.0 .TP .B \-B|\-\-buffer Buffer requests. .UNINDENT .INDENT 0.0 .TP .B \-u|\-\-username Use \fIusername\fP for SASL authentication. .UNINDENT .INDENT 0.0 .TP .B \-p|\-\-password Use \fIpassword\fP for SASL authentication. .UNINDENT .INDENT 0.0 .TP .B \-e|\-\-expire Use \fIexpiration\fP seconds (or a UNIX timestamp). .UNINDENT .sp \fBNOTE:\fP .INDENT 0.0 .INDENT 3.5 Using an expiration time (period), all keys, which have not bean updated until expiration will cease to exist. .sp Quoting the \fI\%memcached protocol documentation\fP, it states: .INDENT 0.0 .INDENT 3.5 Its effect is to invalidate all existing items immediately (by default) or after the expiration specified. After invalidation none of the items will be returned in response to a retrieval command (unless it\(aqs stored again under the same key \fIafter\fP flush_all has invalidated the items). .sp The most precise definition of what flush_all does is the following: it causes all items whose update time is earlier than the time at which flush_all was set to be executed to be ignored for retrieval purposes. .sp The intent of flush_all with a delay, was that in a setting where you have a pool of memcached servers, and you need to flush all content, you have the option of not resetting all memcached servers at the same time (which could e.g. cause a spike in database load with all clients suddenly needing to recreate content that would otherwise have been found in the memcached daemon). .UNINDENT .UNINDENT .UNINDENT .UNINDENT .SH ENVIRONMENT .INDENT 0.0 .TP .B MEMCACHED_SERVERS Specify a list of servers. .UNINDENT .SH NOTES .SS PROGRAM PREFIX .sp The prefix of this program is variable, i.e. it can be configured at build time. .sp Usually the client programs of \fBlibmemcached\-awesome\fP are prefixed with \fBmem\fP, like \fBmemcat\fP or \fBmemcp\fP\&. .sp It can be configured, though, to replace the prefix with something else like \fBmc\fP, in case of that, the client programs of \fBlibmemcached\-awesome\fP would be called \fBmccat\fP, \fBmccp\fP, etc. respectively. .SH SEE ALSO .sp \fBmemcached(1)\fP \fBlibmemcached(3)\fP .INDENT 0.0 .IP \(bu 2 \fI\%C/C++ Client Library for memcached\fP .IP \(bu 2 \fI\%Wiping clean the contents of a server\fP .UNINDENT .\" Generated by docutils manpage writer. .