Return-Path: X-Original-To: apmail-commons-user-archive@www.apache.org Delivered-To: apmail-commons-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 271DFF4FE for ; Fri, 14 Nov 2014 17:03:15 +0000 (UTC) Received: (qmail 20584 invoked by uid 500); 14 Nov 2014 17:03:14 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 20462 invoked by uid 500); 14 Nov 2014 17:03:14 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 20449 invoked by uid 99); 14 Nov 2014 17:03:14 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Nov 2014 17:03:14 +0000 Received: from malagant.home.lan (erft-5d80a2f0.pool.mediaWays.net [93.128.162.240]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 351BF1A01AD for ; Fri, 14 Nov 2014 17:02:11 +0000 (UTC) Message-ID: <546635CB.3000503@apache.org> Date: Fri, 14 Nov 2014 18:03:07 +0100 From: Thomas Vandahl User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Commons Users List Subject: Re: [JCS] disk persistence - same conf file, different results References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 14.11.14 13:47, joao tiago a. m. viegas wrote: > I'll probably reformat this question in a simpler way. > > The goal is to persist an element and retrieve it after restart of a new vm. The disk caches persist the keys when the cache is shut down. So you should call CompositeCacheManager.getInstance().shutDown(); before your application ends. Bye, Thomas. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@commons.apache.org For additional commands, e-mail: user-help@commons.apache.org