I'd suggest looking at Cache::Memcached
as this post to the hazelnut google groups seems to imply that someone else has already done this using this module.
For other solutions, you could continue searching on cpan for Memcache
. Or for a non distributed solution, can just go with the core library Memoize
.