Return-Path: X-Original-To: apmail-incubator-directmemory-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-directmemory-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D86F27DC5 for ; Thu, 15 Dec 2011 12:56:00 +0000 (UTC) Received: (qmail 91404 invoked by uid 500); 15 Dec 2011 12:56:00 -0000 Delivered-To: apmail-incubator-directmemory-dev-archive@incubator.apache.org Received: (qmail 91355 invoked by uid 500); 15 Dec 2011 12:56:00 -0000 Mailing-List: contact directmemory-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: directmemory-dev@incubator.apache.org Delivered-To: mailing list directmemory-dev@incubator.apache.org Received: (qmail 91347 invoked by uid 99); 15 Dec 2011 12:56:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Dec 2011 12:56:00 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of tommaso.teofili@gmail.com designates 209.85.160.47 as permitted sender) Received: from [209.85.160.47] (HELO mail-pw0-f47.google.com) (209.85.160.47) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Dec 2011 12:55:53 +0000 Received: by pbcc11 with SMTP id c11so1073648pbc.6 for ; Thu, 15 Dec 2011 04:55:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; bh=0vJ2c3PzaN7OXyHRLmzMW4e5/HdzwBhTy/x8uTIEGog=; b=ONfyboQCm4qp22/Ukv/82SiB3dftv/3A/QI7Fr4Rqf2o+jGS36PtmwIoxPBXB2lsFq ouQhMVjI9Ttb8sq/Lt++lISnyMUdBQQceaWXe0e9vGefyuy3eSGPdtc/pNFSwluY0vcc Z5migw5xpcfPInPmrLmifualQBDExrOKmRUTo= Received: by 10.68.74.164 with SMTP id u4mr9854123pbv.30.1323953733607; Thu, 15 Dec 2011 04:55:33 -0800 (PST) MIME-Version: 1.0 Received: by 10.142.48.8 with HTTP; Thu, 15 Dec 2011 04:54:52 -0800 (PST) From: Tommaso Teofili Date: Thu, 15 Dec 2011 13:54:52 +0100 Message-ID: Subject: Cache keys To: directmemory-dev@incubator.apache.org Content-Type: multipart/alternative; boundary=bcaec54693e7fd9f5004b420ffa6 --bcaec54693e7fd9f5004b420ffa6 Content-Type: text/plain; charset=ISO-8859-1 Hi all, while working on one of the examples I found myself wondering why keys in Cache have to be Strings. Generally a cache should also be able to use objects of whatever nature as keys, so we could use the same serialization mechanism used for values or, at least, define keys to be implementing the java.io.Serializable interface. What do you think? Tommaso --bcaec54693e7fd9f5004b420ffa6--