Can I iterate the item of the memcached server?
Jack Tang
himars at gmail.com
Wed Oct 25 07:23:22 UTC 2006
Hi,
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
/Jack
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
> time]>.
> 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
mailing list