Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id CA6AC200C13 for ; Mon, 6 Feb 2017 08:39:59 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id C8F0C160B53; Mon, 6 Feb 2017 07:39:59 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id EAEF1160B49 for ; Mon, 6 Feb 2017 08:39:58 +0100 (CET) Received: (qmail 58503 invoked by uid 500); 6 Feb 2017 07:39:57 -0000 Mailing-List: contact user-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@ignite.apache.org Delivered-To: mailing list user@ignite.apache.org Received: (qmail 58493 invoked by uid 99); 6 Feb 2017 07:39:57 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Feb 2017 07:39:57 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 41648180BB9 for ; Mon, 6 Feb 2017 07:39:57 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.001 X-Spam-Level: ** X-Spam-Status: No, score=2.001 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=2, UNPARSEABLE_RELAY=0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id RWEKZUWTQ5dl for ; Mon, 6 Feb 2017 07:39:51 +0000 (UTC) Received: from smtp2205-175.mail.aliyun.com (smtp2205-175.mail.aliyun.com [121.197.205.175]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id C4F585F644 for ; Mon, 6 Feb 2017 07:39:43 +0000 (UTC) X-Alimail-AntiSpam: AC=CONTINUE;BC=0.08574432|-1;FP=0|0|0|0|0|-1|-1|-1;HT=e01l10425;MF=shawn.du@neulion.com.cn;NM=1;PH=DS;RN=1;RT=1;SR=0;TI=SMTPD_---.7ZKEraZ_1486366763; Received: from dellPC(mailfrom:shawn.du@neulion.com.cn ip:112.65.125.42) by smtp.aliyun-inc.com(10.147.40.7); Mon, 06 Feb 2017 15:39:23 +0800 From: "Shawn Du" To: References: <02f101d28048$4feedae0$efcc90a0$@neulion.com.cn> In-Reply-To: <02f101d28048$4feedae0$efcc90a0$@neulion.com.cn> Subject: =?gb2312?B?tPC4tDogcGVyc2lzdCBvbmx5IG9uIGRlbGV0ZSA=?= Date: Mon, 6 Feb 2017 15:39:24 +0800 Message-ID: <02fb01d2804c$23421990$69c64cb0$@neulion.com.cn> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_02FC_01D2808F.31669210" X-Mailer: Microsoft Outlook 15.0 Thread-Index: AQGRkyjYHm+2tx9jrPB3gMC2R9JyD6HdcRlA Content-Language: zh-cn archived-at: Mon, 06 Feb 2017 07:40:00 -0000 This is a multipart message in MIME format. ------=_NextPart_000_02FC_01D2808F.31669210 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: quoted-printable Hi, =20 In delete method, we can only get cache key. In order to get cache = entry value, we need get Ignite instance and get the cache. =20 Assume we already get all of them. Can we get value in the cache by the = key? Which is still valid in cache? =20 Thanks Shawn =20 =B7=A2=BC=FE=C8=CB: Shawn Du [mailto:shawn.du@neulion.com.cn]=20 =B7=A2=CB=CD=CA=B1=BC=E4: 2017=C4=EA2=D4=C26=C8=D5 15:12 =CA=D5=BC=FE=C8=CB: user@ignite.apache.org =D6=F7=CC=E2: persist only on delete=20 =20 Hi, =20 I have a case which cache entry will be update frequently, and I only = want to persist it when the cache is manually remove(cache will not change anymore) by me. =20 For this case, It is a good idea to implement persist logic in delete/deleteAll method while write/writeAll do nothing? =20 @Override public void delete(Object o) { //do nothing, we never have this operation. } =20 =20 Thanks Shawn ------=_NextPart_000_02FC_01D2808F.31669210 Content-Type: text/html; charset="gb2312" Content-Transfer-Encoding: quoted-printable

Hi,

 

In delete = method, we can only get cache key.  In order to get cache entry = value, we need get Ignite instance and get the = cache.

 

Assume we = already get all of them. Can we get value in the cache by the key? Which = is still valid in cache?

 

Thanks

Shawn

 

=B7=A2=BC=FE=C8=CB: Shawn Du [mailto:shawn.du@neulion.com.cn] =
=B7=A2=CB=CD=CA=B1=BC=E4: 2017=C4=EA2=D4=C26=C8=D5 = 15:12
=CA=D5=BC=FE=C8=CB: = user@ignite.apache.org
=D6=F7=CC=E2: persist only on delete =

 

Hi,

 

I have a case which cache entry will be update frequently, = and I only want to persist it when the cache is manually remove(cache = will not change anymore) by me.

 

For this case, It is a good idea to = implement persist logic in delete/deleteAll method while write/writeAll = do nothing?

 

@Override
<= /span>public void = delete<= span lang=3DEN-US = style=3D'font-size:9.0pt;font-family:SimSun;color:#A9B7C6'>(Object = o)
{
   
//do nothing, we = never have this operation.
}

 

 

Thanks

Shawn

------=_NextPart_000_02FC_01D2808F.31669210--