for what I've tried "static" variables and apc_add or apc_store are "per session", and I'm looking for a "sitewide" variable in memory. Of course it can be handled in a database or in a file, but if possible I'd like to avoid those options.
For sitewide variables, I have done a few things.