<% $result %>
This was<% $cached ? '' : ' not' %> cached.

<%init>
my $cached = 0;
my $result;
if (!($result = mc_cache(key=>'fandango'))) {
    $result = "Hello Dolly.";
    mc_cache(action=>'store', key=>'fandango', value=>$result);
} else {
    $cached = 1;
}
</%init>