1MEMFLUSH(1) libmemcached-awesome MEMFLUSH(1)
2
3
4
6 memflush - libmemcached Documentation
7
9 memflush [options]
10
11 Reset a server or list of servers
12
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
20 --help Display help.
21
22 --version
23 Display version.
24
25 --quiet
26 Operate quietly.
27
28 --verbose
29 Operate more verbosely.
30
31 --debug
32 See --verbose.
33
34 --servers <list of servers>
35 Specify the list of servers as hostname[:port][,host‐
36 name[:port]...].
37
38 --binary
39 Enable binary protocol.
40
41 --username <username>
42 Use username for SASL authentication.
43
44 --password <password>
45 Use password for SASL authentication.
46
47 --expire <expiration>
48 Use expiration seconds (or a UNIX timestamp).
49
50 NOTE:
51 Using an expiration time (period), all keys, which have not bean up‐
52 dated until expiration will cease to exist.
53
54 Quoting the memcached protocol documentation, it states:
55 Its effect is to invalidate all existing items immediately (by
56 default) or after the expiration specified. After invalidation
57 none of the items will be returned in response to a retrieval
58 command (unless it's stored again under the same key after
59 flush_all has invalidated the items).
60
61 The most precise definition of what flush_all does is the fol‐
62 lowing: it causes all items whose update time is earlier than
63 the time at which flush_all was set to be executed to be ignored
64 for retrieval purposes.
65
66 The intent of flush_all with a delay, was that in a setting
67 where you have a pool of memcached servers, and you need to
68 flush all content, you have the option of not resetting all mem‐
69 cached servers at the same time (which could e.g. cause a spike
70 in database load with all clients suddenly needing to recreate
71 content that would otherwise have been found in the memcached
72 daemon).
73
75 MEMCACHED_SERVERS
76 Specify the list of servers.
77
79 memcached(1) libmemcached(3)
80
81 • /libmemcached
82
83 • /libmemcached/memcached_flush
84
85
86
87
881.1 Sep 20, 2021 MEMFLUSH(1)