Re: [need for advices] fastCaching
| From: | MARTY Fabien | Date: | Mon, 22 Jul 2002 15:23:58 +0000 |
| Subject: | Re: [need for advices] fastCaching | ||
| References: | 1 2 3 4 5 6 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-7856@lists.php.net to get a copy of this message | ||
(Tomas)
> Yes, only one file (no other file from the Cache package required) with
> the isCached function from every container (it should be that big, we
> are only talking about the isCached() functionality).
Ok ! But you need cache reading too !!! In the most cases (there is a
non expired cache file), you need :
- testing if there is a cache (ok for isCached)
- testing if it's expired
- reading the cache and return it !!!
So for reading the cache, you need a read method too ! So you make a
read() generic method and concrete readFile(), readDB(), ... method too
? Your minimal class will be bigger than fastCache...
But maybe I'm tired and I understand anything. I'm confused.
> There is no problem if the cache miss is not so fast, it only happens
> very few times and btw is supposed to be very slow in some cases.
Of course. I'm completly ok with that.
Fabien