1MEMFLUSH(1)                  libmemcached-awesome                  MEMFLUSH(1)
2
3
4

NAME

6       memflush - libmemcached Documentation
7

SYNOPSIS

9       memflush [options]
10
11       Reset a server or list of servers
12

DESCRIPTION

14       memflush  resets the contents of memcached(1) servers.
15
16       WARNING:
17          This means that all data in the specified servers will be deleted.
18

OPTIONS

20       -h|--help
21              Display help.
22
23       -V|--version
24              Display version.
25
26       -q|--quiet
27              Operate quietly.
28
29       -v|--verbose
30              Operate more verbosely.
31
32       -d|--debug
33              See -v|--verbose.
34
35       -s|--servers <list of servers>
36              Specify   the   list   of   servers   as  hostname[:port][,host‐
37              name[:port]...].
38
39       -n|--non-blocking
40              Enable non-blocking operations.
41
42       -N|--tcp-nodelay
43              Disable Nagle's algorithm.
44
45       -b|--binary
46              Enable binary protocol.
47
48       -B|--buffer
49              Buffer requests.
50
51       -u|--username <username>
52              Use username for SASL authentication.
53
54       -p|--password <password>
55              Use password for SASL authentication.
56
57       -e|--expire <expiration>
58              Use expiration seconds (or a UNIX timestamp).
59
60       NOTE:
61          Using an expiration time (period), all keys, which have not bean up‐
62          dated until expiration will cease to exist.
63
64          Quoting the memcached protocol documentation, it states:
65              Its  effect  is to invalidate all existing items immediately (by
66              default) or after the expiration specified.  After  invalidation
67              none  of  the  items will be returned in response to a retrieval
68              command (unless it's stored  again  under  the  same  key  after
69              flush_all has invalidated the items).
70
71              The  most  precise definition of what flush_all does is the fol‐
72              lowing: it causes all items whose update time  is  earlier  than
73              the time at which flush_all was set to be executed to be ignored
74              for retrieval purposes.
75
76              The intent of flush_all with a delay,  was  that  in  a  setting
77              where  you  have  a  pool  of memcached servers, and you need to
78              flush all content, you have the option of not resetting all mem‐
79              cached  servers at the same time (which could e.g. cause a spike
80              in database load with all clients suddenly needing  to  recreate
81              content  that  would  otherwise have been found in the memcached
82              daemon).
83

ENVIRONMENT

85       MEMCACHED_SERVERS
86              Specify a list of servers.
87

NOTES

89   PROGRAM PREFIX
90       The prefix of this program is variable, i.e. it can  be  configured  at
91       build time.
92
93       Usually  the  client programs of libmemcached-awesome are prefixed with
94       mem, like memcat or memcp.
95
96       It can be configured, though, to replace the prefix with something else
97       like  mc,  in case of that, the client programs of libmemcached-awesome
98       would be called mccat, mccp, etc. respectively.
99

SEE ALSO

101       memcached(1) libmemcached(3)
102
103C/C++ Client Library for memcached
104
105Wiping clean the contents of a server
106
107
108
109
1101.1                              Jul 20, 2023                      MEMFLUSH(1)
Impressum