You can use memcached, or use a module to check and init the variable. -----邮件原件----- 发件人: [email protected] [mailto:[email protected]] 代表 Tech list 发送时间: 2010年5月4日 6:44 收件人: [email protected] 主题: [Mason] global/static variable
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 [email protected] https://lists.sourceforge.net/lists/listinfo/mason-users ------------------------------------------------------------------------------ _______________________________________________ Mason-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mason-users

