Re: [PHP-PEAR] Output_Cache Module

[email protected] (Vinai Kopp) Sat, 24 Feb 2001 00:24:39 +0100
Newsgroups php.pear
Message-ID <[email protected]>

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