Greetings,
I sought an answer in the archives, but did not find anything quite right. Could mean my searching stinks. :)
I'm working through a web/backend code set that has been dormant for a few years, mainly migrating from mod_perl 1 to 2, but also looking at some other cleanup.
The code has a global configuration flat file containing config data which changes rarely, but must be changeable without code changes. The configuration is shared amongst a number of CGI scripts as well as back-end daemon processes.
I'm interested in instantiating a data structure in system memory to avoid performance hits reading disk in the CGI. The data structure would need to outlast any given session, which eliminates a number of solutions.
The existing implementation uses IPC::ShareLite and a shared memory segment to accomplish persisting the data.
Is there a simpler or more elegant solution?
Thanks...
In reply to Caching File-based Config across many sessions by Whiz Kid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |