flush_all functionality at given time
Alex Stapleton
alexs at advfn.com
Wed Aug 10 00:27:24 PDT 2005
On 10 Aug 2005, at 07:01, Brad Fitzpatrick wrote:
> Checked in to cvs. Thanks!
>
>
> On Wed, 6 Jul 2005, Elizabeth Mattijsen wrote:
>
>
>
>> Because I needed a way to flush all memcached backend servers, but
>> not at exactly the same time (to reduce load peaks), I've added some
>> simple functionality to the memcached protocol in the "flush_all"
>> command that allows you to specify a time at which the flush will
>> actually occur (instead of always at the moment the "flush_all"
>> command is received).
>>
>> So, apart from just "flush_all", you can now also specify an
>> expiration for the flush to occur.
>>
>> flush_all\r\n // flushes now
>> flush_all 10\r\n // flushes in 10 seconds
>> flush_all 1120673174\r\n // flushes at Wed Jul 6 18:06:14 2005
>> GMT
>>
One question,
How do you differentiate from "in 10 seconds" and a full UNIX Time
stamp?
More information about the memcached
mailing list