Re: cache engine
| From: | Chris Smith | Date: | Sat, 05 Mar 2005 21:36:22 +0000 |
| Subject: | Re: cache engine | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-210073@lists.php.net to get a copy of this message | ||
Evert - Rooftop Solutions wrote:
I have written an extensive web application frameworks, and I keep seeing my execution time and memory-usage growing. Right now it is not a problem, but before it get's out of hands I will need to create a good cache engine. My cache engine requires that I can cache method results, based on multiple parameters. What would be a good way to implement this? I know this propably a well-formed question, but before I start, I want to be sure I'll do it the right way. Has anyone got any experience with this, or can anyone give me some pointers on where to start looking?I have seen some people using stornig cached items in shared memory. This is explained in some detail here: http://www.danga.com/memcached/ There are PHP client APIs available. Alternatively PEAR offers some interesting caching solutions although i have not investigated them thoroughly ( http://pear.php.net/ ) Caching brings all sorts of wierdness out in applications due to multiple states of data being present in different layers in a system, so be careful. Hope this helps, Chris Smith Ninja Labs http://www.ninjalabs.co.uk/