|
Posted by Chris Smith on 03/05/05 23:36
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/
Navigation:
[Reply to this message]
|