Stephen wrote:
Hi, everyone:
     In my project, I execute the "flush_all" command with careless,
however, the data in the memcache is important for me, it has not to
be saved into database.
    And I read the doc, it says " flush_all doesn't actually free all
the memory taken up by existing items; that will happen gradually as
new items are stored." Since the memcache just use a half of the
memory allocated, I think the data which are not saved into database
may be still in the MEMORY, so is there anyone tell me how I could get
the data ?

There is no method of doing so designed for users, but there are a couple of things underneath. It sounds like you're in a "data recovery" type situation. This being the case, I might recommend you use gcore to get a core of the running memcached process(es) so you'll have something point in time stable you can later use a debugger to get the data out of.

If I misunderstand and you're looking to do this on a regular basis or as part of some recovery plan for your database, please give us some more info on what you want your app to do and we may be able to help point you to a solution that doesn't require getting to all of the items in the cache.

Hope that helps,

- Matt

Reply via email to