Skip Menu |
 

This queue is for tickets about the CHI CPAN distribution.

Report information
The Basics
Id: 77431
Status: resolved
Priority: 0/
Queue: CHI

People
Owner: Nobody in particular
Requestors: NHORNE [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.52
Fixed in: (no value)



MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 80
Please add CHI::CacheObject->accessed_at() so that I can implement LRU policies.
From swartz [...] pobox.com Tue May 29 20: 52:45 2012
MIME-Version: 1.0 (Apple Message framework v1084)
X-Spam-Status: No, score=-5.252 tagged_above=-99.9 required=10 tests=[AWL=0.869, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_HI=-5, SPF_NEUTRAL=0.779] autolearn=ham
In-Reply-To: <rt-3.8.HEAD-30524-1337966668-238.77431-4-0 [...] rt.cpan.org>
X-Mailer: Apple Mail (2.1084)
X-Spam-Flag: NO
References: <RT-Ticket-77431 [...] rt.cpan.org> <rt-3.8.HEAD-30524-1337966668-238.77431-4-0 [...] rt.cpan.org>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
Content-Type: text/plain; charset="utf-8"
Message-ID: <C0751255-103E-4A47-9D7E-F37F99B2EFD1 [...] pobox.com>
X-Sasl-Enc: SLq8NGo4WJSvWqP+uc7N6m4foJwFYdK1cZaFyQxn9SKU 1338339155
X-RT-Original-Encoding: utf-8
X-Spam-Score: -5.252
Authentication-Results: hipster.bestpractical.com (amavisd-new); dkim=pass header.i= [...] messagingengine.com
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 970A1240275 for <cpan-bug+CHI [...] hipster.bestpractical.com>; Tue, 29 May 2012 20:52:45 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9iTZPWM432bF for <cpan-bug+CHI [...] hipster.bestpractical.com>; Tue, 29 May 2012 20:52:43 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 6874E2400C3 for <bug-CHI [...] rt.cpan.org>; Tue, 29 May 2012 20:52:43 -0400 (EDT)
Received: (qmail 4792 invoked by uid 103); 30 May 2012 00:52:42 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 30 May 2012 00:52:42 -0000
Received: from out3-smtp.messagingengine.com (HELO out3-smtp.messagingengine.com) (66.111.4.27) by 16.mx.develooper.com (qpsmtpd/0.80/v0.80-19-gf52d165) with ESMTP; Tue, 29 May 2012 17:52:38 -0700
Received: from compute1.internal (compute1.nyi.mail.srv.osa [10.202.2.41]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id EDB0621221 for <bug-CHI [...] rt.cpan.org>; Tue, 29 May 2012 20:52:35 -0400 (EDT)
Received: from frontend1.nyi.mail.srv.osa ([10.202.2.160]) by compute1.internal (MEProxy); Tue, 29 May 2012 20:52:35 -0400
Received: from [10.1.10.110] (unknown [24.130.81.47]) by mail.messagingengine.com (Postfix) with ESMTPA id 8A2008E01D6 for <bug-CHI [...] rt.cpan.org>; Tue, 29 May 2012 20:52:35 -0400 (EDT)
Delivered-To: cpan-bug+CHI [...] hipster.bestpractical.com
Subject: Re: [rt.cpan.org #77431]
Return-Path: <swartz [...] pobox.com>
Dkim-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-type:mime-version:subject:from :in-reply-to:date:content-transfer-encoding:message-id :references:to; s=smtpout; bh=I4rKAPz6m9W8qr0YOKFMSGfQ4HY=; b=dw LSNVBVNVHJyLNdQuXPx+IaYhwgLDXrg7K2gLYAnu9KJNMl1nl46ZXNmtr3aCcfYz iJunAdkwjxk034CfBnsSaXCgrSyyTFhZXlag6fo7Egzz7a0fa0WoeXSZWeGe5fXw c5sUijbu7rruY2/XXwJLK+ym24JkInHhLWArd5nfc=
X-Spam-Check-BY: 16.mx.develooper.com
X-Original-To: cpan-bug+CHI [...] hipster.bestpractical.com
X-RT-Mail-Extension: chi
Date: Tue, 29 May 2012 17:52:35 -0700
X-Spam-Level:
To: bug-CHI [...] rt.cpan.org
Content-Transfer-Encoding: quoted-printable
From: Jonathan Swartz <swartz [...] pobox.com>
RT-Message-ID: <rt-3.8.HEAD-2222-1338339166-1372.77431-0-0 [...] rt.cpan.org>
Content-Length: 772
Download (untitled) / with headers
text/plain 772b
What kind of cache driver are you using? The Memory cache already has an lru discard policy. Memcached and FastMmap already have built-in LRU. For other drivers, implementing accessed_at would mean doing an extra write for every single read - usually this costs far more than it is worth. On May 25, 2012, at 10:24 AM, Nigel Horne via RT wrote: Show quoted text
> Fri May 25 13:24:28 2012: Request 77431 was acted upon. > Transaction: Ticket created by NHORNE > Queue: CHI > Subject: (No subject given) > Broken in: 0.52 > Severity: Wishlist > Owner: Nobody > Requestors: NHORNE@cpan.org > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=77431 > > > > Please add CHI::CacheObject->accessed_at() so that I can implement LRU > policies.
MIME-Version: 1.0
In-Reply-To: <rt-3.8.HEAD-2222-1338339166-1372.77431-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
References: <RT-Ticket-77431 [...] rt.cpan.org> <rt-3.8.HEAD-30524-1337966668-238.77431-4-0 [...] rt.cpan.org> <C0751255-103E-4A47-9D7E-F37F99B2EFD1 [...] pobox.com> <rt-3.8.HEAD-2222-1338339166-1372.77431-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-24883-1338384847-243.77431-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 12
Mostly file.
From swartz [...] pobox.com Mon Jun 4 01: 36:36 2012
MIME-Version: 1.0 (Apple Message framework v1084)
X-Spam-Status: No, score=-5.166 tagged_above=-99.9 required=10 tests=[AWL=0.955, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_HI=-5, SPF_NEUTRAL=0.779] autolearn=ham
In-Reply-To: <rt-3.8.HEAD-24883-1338384848-1798.77431-5-0 [...] rt.cpan.org>
X-Mailer: Apple Mail (2.1084)
X-Spam-Flag: NO
References: <RT-Ticket-77431 [...] rt.cpan.org> <rt-3.8.HEAD-30524-1337966668-238.77431-4-0 [...] rt.cpan.org> <C0751255-103E-4A47-9D7E-F37F99B2EFD1 [...] pobox.com> <rt-3.8.HEAD-2222-1338339166-1372.77431-5-0 [...] rt.cpan.org> <rt-3.8.HEAD-24883-1338384848-1798.77431-5-0 [...] rt.cpan.org>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
Content-Type: text/plain; charset="utf-8"
Message-ID: <879F512D-3DEC-4541-975A-BFCFDAC842C6 [...] pobox.com>
X-Sasl-Enc: fJHMeL2h5ypD9Ys8t9V8yZBd/5SZ3cA+/zizqPwgYkL8 1338788184
X-RT-Original-Encoding: utf-8
X-Spam-Score: -5.166
Authentication-Results: hipster.bestpractical.com (amavisd-new); dkim=pass header.i= [...] messagingengine.com
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id DD2AF24038F for <cpan-bug+CHI [...] hipster.bestpractical.com>; Mon, 4 Jun 2012 01:36:36 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Qkk5sG5fCzSp for <cpan-bug+CHI [...] hipster.bestpractical.com>; Mon, 4 Jun 2012 01:36:35 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 174862400BB for <bug-CHI [...] rt.cpan.org>; Mon, 4 Jun 2012 01:36:34 -0400 (EDT)
Received: (qmail 30776 invoked by uid 103); 4 Jun 2012 05:36:32 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 4 Jun 2012 05:36:32 -0000
Received: from out1-smtp.messagingengine.com (HELO out1-smtp.messagingengine.com) (66.111.4.25) by 16.mx.develooper.com (qpsmtpd/0.80/v0.80-19-gf52d165) with ESMTP; Sun, 03 Jun 2012 22:36:27 -0700
Received: from compute6.internal (compute6.nyi.mail.srv.osa [10.202.2.46]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 93A3C2103C for <bug-CHI [...] rt.cpan.org>; Mon, 4 Jun 2012 01:36:24 -0400 (EDT)
Received: from frontend1.nyi.mail.srv.osa ([10.202.2.160]) by compute6.internal (MEProxy); Mon, 04 Jun 2012 01:36:24 -0400
Received: from [10.0.1.2] (unknown [71.202.172.196]) by mail.messagingengine.com (Postfix) with ESMTPA id 354798E0207 for <bug-CHI [...] rt.cpan.org>; Mon, 4 Jun 2012 01:36:24 -0400 (EDT)
Delivered-To: cpan-bug+CHI [...] hipster.bestpractical.com
Subject: Re: [rt.cpan.org #77431]
Return-Path: <swartz [...] pobox.com>
Dkim-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-type:mime-version:subject:from :in-reply-to:date:content-transfer-encoding:message-id :references:to; s=smtpout; bh=0RswJpQSDiCZKFUMpn7IRhnsRnk=; b=Vk csSBopSG3dtQyUIY2l5cfF17mPjR0oLaUNFOJWNsaMcVHtpGu03z1e+0T93czc5r a43sGpzwYkyDBZwAgsRggWUPwTkS9I9NsykCBfSy9irFtldN+viI5r9GI7iIgaAy LiAKGMQ7DQM1KQs80chul9UWa/1/pIwQyDNUc4bvM=
X-Spam-Check-BY: 16.mx.develooper.com
X-Original-To: cpan-bug+CHI [...] hipster.bestpractical.com
X-RT-Mail-Extension: chi
Date: Sun, 3 Jun 2012 22:36:23 -0700
X-Spam-Level:
To: bug-CHI [...] rt.cpan.org
Content-Transfer-Encoding: quoted-printable
From: Jonathan Swartz <swartz [...] pobox.com>
RT-Message-ID: <rt-3.8.HEAD-3357-1338788197-991.77431-0-0 [...] rt.cpan.org>
Content-Length: 439
Download (untitled) / with headers
text/plain 439b
Yeah, I don't see how to add this to the File driver in an efficient way - it would effectively turn every get() into a set(). If you wanted to do this I think you'd want to write your own routine that could check the access times of each cache file (assuming you are on Unix). On May 30, 2012, at 6:34 AM, Nigel Horne via RT wrote: Show quoted text
> Queue: CHI > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=77431 > > > Mostly file.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.