[Catalyst] Tutorial for cache?

Tomas Doran bobtfish at bobtfish.net
Wed Apr 15 20:50:52 GMT 2009


On 15 Apr 2009, at 07:23, Alexander Tamm wrote:

> J. Shirley wrote:
>>     I'm trying to find out how to implement caching on a site,
>>     preferrably with Cache::FastMmap, but I'm open to suggestions.  
>> I'm
>>     not including my trial source now, since I'm unsure I have  
>> read the
>>     correct documentation.
>
>> Catalyst::Plugin::PageCache?
>
> Thanks, but I want to cache values that are the result of expensive  
> database queries, preferrably a a hash reference.

Take a look at Catalyst::Plugin::Cache. The docs are a bit crap  
(patches welcome!), but it'll do what you want, and has nice features  
to give you curried accessors for things etc..

I'd personally combine that with Cache::Memcached, but you can use  
whatever Cache:: backend you want.

Cheers
t0m




More information about the Catalyst mailing list