You can use $m->cache, or

    <%once>
    my %hash;
    </%once>


On May 3, 2010, at 3:43 PM, Tech list wrote:

> I want to have a fairly "static" hash that I load from a database and
> access globally.  This hash rarely ever changes so I wanted to avoid
> hitting the database at every request.  What are my best options for
> doing this?
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Mason-users mailing list
> Mason-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mason-users


------------------------------------------------------------------------------
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to