Re: cache a object in modperl
Mithun Bhattacharya <[email protected]>
| Newsgroups | gmane.comp.apache.mod-perl |
|---|---|
| Message-ID | <CAHTPV9K+yUY_zLr696zVF8P=xwKb27QNPCQ9e4w51widbZ6oTQ@mail.gmail.com> |
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 <[email protected]> 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. >