Re: Output_Cache Module
| From: | Vinai Kopp | Date: | Fri, 23 Feb 2001 23:24:39 +0000 |
| Subject: | Re: Output_Cache Module | ||
| References: | 1 | Groups: | php.pear |
| Request: | Send a blank email to php-pear+get-1487@lists.php.net to get a copy of this message | ||
Christian Stocker wrote:
> > I moved the container logic for the DB and the fileBack end into
> > separate classes ( Cache_Container_db and Cache_Container_file) and made
> > a generic Cache class that is a parent of Cache_Output. It can handle
>
> didn't really get that. My code seperated DB and file logic as well in
> different classes (Cache_Output_File and Cache_Output_DB) and there was a
> master class (Cache_Output). Did i do something not correct with that?
> (i'm fairly new to php-oo-design and very eager to learn more about that.)
> Maybe if i see your code, it's logic for me as well.
I didn't change very much, you can see for yourself:
http://vinais.home-in-the.net/pear/cache/
Mostly renaming the Classes because they aren't only for caching output
now :)
I added the isExpired functions as well...
>
> > I'll post an url later on today when I'm through making the changes.
>
took longer than I wanted.
Comments, Questions, Critic etc. are of course very welcome,
Vinai