From commits-return-25722-archive-asf-public=cust-asf.ponee.io@cayenne.apache.org Tue Jul 9 14:54:29 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id C9D8A18062B for ; Tue, 9 Jul 2019 16:54:28 +0200 (CEST) Received: (qmail 32325 invoked by uid 500); 9 Jul 2019 14:54:28 -0000 Mailing-List: contact commits-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cayenne.apache.org Delivered-To: mailing list commits@cayenne.apache.org Received: (qmail 32316 invoked by uid 99); 9 Jul 2019 14:54:28 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Jul 2019 14:54:28 +0000 From: GitBox To: commits@cayenne.apache.org Subject: [GitHub] [cayenne] johnthuss opened a new pull request #292: QueryCache improvements for local caching Message-ID: <156268406814.443.9143863116677811923.gitbox@gitbox.apache.org> Date: Tue, 09 Jul 2019 14:54:28 -0000 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit johnthuss opened a new pull request #292: QueryCache improvements for local caching URL: https://github.com/apache/cayenne/pull/292 Added getQueryCache to the ObjectContext interface since this is already implemented by BaseContext anyway and makes accessing the cache much easier. Revised signature for QueryCache.remove(String) to be remove(QueryMetadata) to increase understandability. It was never clear how to use this method before. Added QueryCache.clearLocalCache method. This is now called automatically at the end of the request-response loop in StatelessContextRequestHandler and by BaseContext.finalize. This will prevent memory leaking from locally cached data in cases where the cache is not configured to expire entries based on time. Added QueryCache.debugListCacheKeys method to list all keys (prefixed by cache group) in the cache for debugging purposes. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: users@infra.apache.org With regards, Apache Git Services