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 25AE0200C21 for ; Mon, 20 Feb 2017 10:22:48 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 24521160B62; Mon, 20 Feb 2017 09:22:48 +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 6FC34160B73 for ; Mon, 20 Feb 2017 10:22:47 +0100 (CET) Received: (qmail 6742 invoked by uid 500); 20 Feb 2017 09:22:46 -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 6732 invoked by uid 99); 20 Feb 2017 09:22:46 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Feb 2017 09:22:46 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 4D95E1A0583 for ; Mon, 20 Feb 2017 09:22:46 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.199 X-Spam-Level: X-Spam-Status: No, score=-1.199 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 5fxBMAzB4ag4 for ; Mon, 20 Feb 2017 09:22:45 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 5CFF560DE1 for ; Mon, 20 Feb 2017 09:22:45 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 880F3E0436 for ; Mon, 20 Feb 2017 09:22:44 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 120B221D62 for ; Mon, 20 Feb 2017 09:22:44 +0000 (UTC) Date: Mon, 20 Feb 2017 09:22:44 +0000 (UTC) From: "Nikita Timofeev (JIRA)" To: commits@cayenne.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Closed] (CAY-2233) Deprecate size() and clear() methods from QueryCache interface MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 20 Feb 2017 09:22:48 -0000 [ https://issues.apache.org/jira/browse/CAY-2233?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Nikita Timofeev closed CAY-2233. -------------------------------- Resolution: Fixed https://github.com/apache/cayenne/commit/eb794546858923026384fe19f1a1601df7b253ea > Deprecate size() and clear() methods from QueryCache interface > -------------------------------------------------------------- > > Key: CAY-2233 > URL: https://issues.apache.org/jira/browse/CAY-2233 > Project: Cayenne > Issue Type: Improvement > Components: Core Library > Reporter: Nikita Timofeev > Assignee: Nikita Timofeev > Fix For: 4.0.M5 > > > # clear() method can be really dangerous to call when some shared external cache is used as it can drop the whole cache content not only the one managed by Cayenne. And we shouldn't interfere with external environment. > # size() method on the other side is _safe_, but it is already unsupported by JCache provider and it can give not useful results for other providers too, and moreover cache management shouldn't be done by Cayenne as it is implementation and usage dependent > So the only question is wether to delete this methods or just deprecate them in 4.0 -- This message was sent by Atlassian JIRA (v6.3.15#6346)