MESSAGE
DATE | 2020-09-14 |
FROM | Mithun Bhattacharya
|
SUBJECT | Re: [Hangout - NYLXS] cache a object in modperl
|
From hangout-bounces-at-nylxs.com Sat Sep 26 03:26:38 2020 Return-Path: X-Original-To: archive-at-mrbrklyn.com Delivered-To: archive-at-mrbrklyn.com Received: from www2.mrbrklyn.com (www2.mrbrklyn.com [96.57.23.82]) by mrbrklyn.com (Postfix) with ESMTP id 3293A163FE2; Sat, 26 Sep 2020 03:26:37 -0400 (EDT) X-Original-To: hangout-at-www2.mrbrklyn.com Delivered-To: hangout-at-www2.mrbrklyn.com Received: by mrbrklyn.com (Postfix, from userid 1000) id 47444163FCD; Sat, 26 Sep 2020 03:20:58 -0400 (EDT) Resent-From: Ruben Safir Resent-Date: Sat, 26 Sep 2020 03:20:58 -0400 Resent-Message-ID: <20200926072058.GL10387-at-www2.mrbrklyn.com> Resent-To: hangout-at-mrbrklyn.com X-Original-To: ruben-at-mrbrklyn.com Delivered-To: ruben-at-mrbrklyn.com Received: from mailroute1-lw-us.apache.org (mailroute1-lw-us.apache.org [207.244.88.153]) by mrbrklyn.com (Postfix) with ESMTP id 2B0AF161150 for ; Mon, 14 Sep 2020 00:46:10 -0400 (EDT) Received: from mail.apache.org (localhost [127.0.0.1]) by mailroute1-lw-us.apache.org (ASF Mail Server at mailroute1-lw-us.apache.org) with SMTP id 84AC8121EC2 for ; Mon, 14 Sep 2020 04:46:10 +0000 (UTC) Received: (qmail 27627 invoked by uid 500); 14 Sep 2020 04:46:08 -0000 Mailing-List: contact modperl-help-at-perl.apache.org; run by ezmlm Precedence: bulk Delivered-To: mailing list modperl-at-perl.apache.org Received: (qmail 27616 invoked by uid 99); 14 Sep 2020 04:46:08 -0000 Received: from spamproc1-he-de.apache.org (HELO spamproc1-he-de.apache.org) (116.203.196.100) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Sep 2020 04:46:08 +0000 Received: from localhost (localhost [127.0.0.1]) by spamproc1-he-de.apache.org (ASF Mail Server at spamproc1-he-de.apache.org) with ESMTP id 8E6F81FF42E for ; Mon, 14 Sep 2020 04:46:07 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamproc1-he-de.apache.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.2, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamproc1-he-de.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-he-de.apache.org ([116.203.227.195]) by localhost (spamproc1-he-de.apache.org [116.203.196.100]) (amavisd-new, port 10024) with ESMTP id RYt0GjKodpcm for ; Mon, 14 Sep 2020 04:46:07 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2607:f8b0:4864:20::e32; helo=mail-vs1-xe32.google.com; envelope-from=mithnb-at-gmail.com; receiver= Received: from mail-vs1-xe32.google.com (mail-vs1-xe32.google.com [IPv6:2607:f8b0:4864:20::e32]) by mx1-he-de.apache.org (ASF Mail Server at mx1-he-de.apache.org) with ESMTPS id 040EE7F981 for ; Mon, 14 Sep 2020 04:46:06 +0000 (UTC) Received: by mail-vs1-xe32.google.com with SMTP id a16so8828852vsp.12 for ; Sun, 13 Sep 2020 21:46:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=GCq7tOmzj6ZXaPyiy26h9ADC/PRMeXudT4L3pGsvgkk=; b=an2fUErpTQ0LdJlOyb0f6PUarHSTIph+Ij3lo4QBajiGArFuP5CRNTBBSMla/Q359b 1pBeovr3Ss1liyPBpt7vb/fQviU/xNh9FEbOzlKYrRDlkjqW2Sa6wddZH2HdTPi5zWbc h9ytd8JQoSL70KemcMKKvLNtafdqY/Hu0d1JacROSLkDZ862EN6oqH4AAX4utqkdwTIi cHnQtcW2/Wpz4NG6y8ABAwppyIkzOWrtHNWy50kzubFLXoZXaeDaypLbiMDpl45roKGS w8I4Rlx3oiNRFLNq/wDTUY5uM+ZBquGAZN94+Ae7OmO9/13AXA3vDp34Wo0jZdS2+xHc BQWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=GCq7tOmzj6ZXaPyiy26h9ADC/PRMeXudT4L3pGsvgkk=; b=pmcraVUi8JkPXNCuz8Up7IOw0QcNEcSlrEd15oYpDKtqdXndR/Oayqdrd7+Ais4b/P qAbcaSgN5TlA2GqpUjeDr7ZFDjoK+rUudW7DpgwPbBo6xVf2QFp0UnFijOyBta+90Pk+ Af+JZ+lLWpDPhNuAU8CIm0RBqlB7hLLC4h0McAGFUXB2MYRlEbm2LHtt57LNc/TnAllt 2Ye0Cqv0ngJxAGCWTj/u6wmZrlEjxgte9xevpGA0CGeVlXYlrcN+ZuacdDKKmWzKT7NI 3Al7WoBKMJZpETWVB2GgyXIbeIXeudB6t/xAyHRqkP7qPHS+fAAga3z4HGG2TZsEGorx SHhQ== X-Gm-Message-State: AOAM530r/zt+H170UY9Iqtmx5O7l8aHoeC+91+MY37I3XppA6uGCrDBs 80iktcj8xrJPAj+mRF5oZEXRCHcEn0Yd8CuAazs= X-Google-Smtp-Source: ABdhPJyPKDY7UIsDWzxCcKhbw1LZhtDwMIQVEZOMPm/R0tVFtx9m0lE0XghAUlHxRIBScuz5FJOl94mT+T9SzwVYFeA= X-Received: by 2002:a67:fa1a:: with SMTP id i26mr6946206vsq.26.1600058765708; Sun, 13 Sep 2020 21:46:05 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Mithun Bhattacharya Date: Sun, 13 Sep 2020 23:45:54 -0500 Message-ID: To: Wesley Peng Cc: mod_perl list Subject: Re: [Hangout - NYLXS] cache a object in modperl X-BeenThere: hangout-at-nylxs.com X-Mailman-Version: 2.1.30rc1 List-Id: NYLXS Tech Talk and Politics List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============1274726936==" Errors-To: hangout-bounces-at-nylxs.com Sender: "Hangout"
--===============1274726936== Content-Type: multipart/alternative; boundary="0000000000005992c805af3eb6a1"
--0000000000005992c805af3eb6a1 Content-Type: text/plain; charset="UTF-8"
Your cache would have to be independent of mod_perl - I would suggest saving to a REDIS instance ?
On Sun, Sep 13, 2020 at 9:51 PM Wesley Peng wrote:
> Hello > > I am not so familiar with modperl. > > For work requirement, I need to access IANA TLD database. > > So I wrote this perl module: > https://metacpan.org/pod/Net::IANA::TLD > > But, for each new() in the module, the database file will be downloaded > from IANA's website. > > I know this is pretty Inefficient. > > My question is, can I cache the new'ed object by modperl? > > If so, how to do? > > Thanks. >
--0000000000005992c805af3eb6a1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Your cache would have to be independent=C2=A0of mod_perl -= I would suggest saving to a REDIS instance ?
quote"> 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hellor>
I am not so familiar with modperl.
For work requirement, I need to access IANA TLD database.
So I wrote this perl module:
et=3D"_blank">https://metacpan.org/pod/Net::IANA::TLD
But, for each new() in the module, the database file will be downloaded > from IANA's website.
I know this is pretty Inefficient.
My question is, can I cache the new'ed object by modperl?
If so, how to do?
Thanks.
--0000000000005992c805af3eb6a1--
--===============1274726936== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline
_______________________________________________ Hangout mailing list Hangout-at-nylxs.com http://lists.mrbrklyn.com/mailman/listinfo/hangout
--===============1274726936==--
--===============1274726936== Content-Type: multipart/alternative; boundary="0000000000005992c805af3eb6a1"
--0000000000005992c805af3eb6a1 Content-Type: text/plain; charset="UTF-8"
Your cache would have to be independent of mod_perl - I would suggest saving to a REDIS instance ?
On Sun, Sep 13, 2020 at 9:51 PM Wesley Peng wrote:
> Hello > > I am not so familiar with modperl. > > For work requirement, I need to access IANA TLD database. > > So I wrote this perl module: > https://metacpan.org/pod/Net::IANA::TLD > > But, for each new() in the module, the database file will be downloaded > from IANA's website. > > I know this is pretty Inefficient. > > My question is, can I cache the new'ed object by modperl? > > If so, how to do? > > Thanks. >
--0000000000005992c805af3eb6a1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Your cache would have to be independent=C2=A0of mod_perl -= I would suggest saving to a REDIS instance ?
quote"> 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hellor>
I am not so familiar with modperl.
For work requirement, I need to access IANA TLD database.
So I wrote this perl module:
et=3D"_blank">https://metacpan.org/pod/Net::IANA::TLD
But, for each new() in the module, the database file will be downloaded > from IANA's website.
I know this is pretty Inefficient.
My question is, can I cache the new'ed object by modperl?
If so, how to do?
Thanks.
--0000000000005992c805af3eb6a1--
--===============1274726936== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline
_______________________________________________ Hangout mailing list Hangout-at-nylxs.com http://lists.mrbrklyn.com/mailman/listinfo/hangout
--===============1274726936==--
|
|