Re: [need for advices] fastCaching
| From: | John Lim | Date: | Mon, 22 Jul 2002 17:39:41 +0000 |
| Subject: | Re: [need for advices] fastCaching | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-7867@lists.php.net to get a copy of this message | ||
Hi Marty,
Speed is not the only criteria :-)
A quick review of the code shows no handling of corrupt cache files.
I suggest writing the file length into the cache file and some signature
bytes
as a prefix/suffix to the cache data to ensure data integrity.
Regards, John
"Marty Fabien" <fabien.marty@free.fr> wrote in message
news:1027321209.2177.9.camel@localhost.localdomain...
> (Bertrand)
> > Could send a link to the code and if you have any usage example, they
would
> > be welcome too.
>
> The code was attached with the first post. :-))
>
> But, it's not a problem :
> http://www.esub2.com/pear/fastCache.php.txt
>
> There is a synopsis. But, the API is not really different than Cache
> one. :-))
>
> Fabien
>