Can I iterate the item of the memcached server?
himars at gmail.com
Thu Oct 26 17:36:27 UTC 2006
---------- Forwarded message ----------
From: Jack Tang <himars at gmail.com>
Date: Oct 25, 2006 3:23 PM
Subject: Re: Can I iterate the item of the memcached server?
To: sishen <sishen_freecity at 126.com>
Cc: memcached at lists.danga.com
I am using memcached java client, and I notice two methods there:
replace(java.lang.String key, java.lang.Object value, java.util.Date
expiry) and set(java.lang.String key, java.lang.Object value,
java.util.Date expiry). In fact, I am facing the same problem, I
wonder how to customize user definied expiration policy. Thanks
On 10/25/06, sishen <sishen_freecity at 126.com> wrote:
> Hello everyone.
> Please give me some advice on the below problem, thx.
> i hash items in memcached in this format, <hashcode, [item content, used
> and TimelimitedExpriationPolicy is applied on these item. If one item
> is expried, it should be removed from memcached.
> And the policy have some difference with the expiry policy of memcached.
> So one way to archive this is iterating the clusted cache and checking
> the items' status.
> But i found that i can't get the data collection from the server
> immediately. I want to know
> that whether there is a way can do this?
More information about the memcached