Re: [PHP-PEAR] Output_Cache Module

[email protected] (Chuck Hagenbuch) Thu, 22 Feb 2001 09:56:22 -0500
Newsgroups php.pear
Message-ID <[email protected]>
Quoting Ulf Wendel <[email protected]>:

> class storage
> 
>   public:
> 
>     mixed   get(id)
>     boolean save(id, data)
>     boolean delete(id)
>     boolean flush()
>     boolean isCached(id)
>     boolean isExpired(id) 
> 
>   [
>   private:
>     string load(id)
>   ]

... except that this isn't a generic storage class, it's an API for cache 
backends. So it should be called CacheDriver, or just Cache_File, Cache_SQL, 
etc. - much less misleading. You can use a factory approach like DB to 
instantiate Cache objects.

-chuck

--
Charles Hagenbuch, <[email protected]>
"We have no fuel on board, plus or minus 8 kilograms." -A NASA scientist