persistant web state
Jay O'Connor
joconnor at nets.com
Tue May 20 12:59:20 EDT 2003
In article <mailman.1053445772.30048.python-list at python.org>, "Skip
Montanaro" <skip at pobox.com> wrote:
> Jay> I'm lloking for a technique to allow me to keep memory alive
> Jay> between invocations of a cgi program. What I mean is that if I
> Jay> have two cgi requests come into a script, they should be able
> to Jay> access the same data in memory and not have to load from a
> Jay> database.
>
> Why not have a long-running process manage a shared memory segment using
> mmap? Your CGI processes could then attach to that segment.
How would that work with Python objects? I thought mmap was only for
file objects?
--
Jay O'Connor
http://www.r4h-music.com
"God Himself plays the bass strings first,
when He tunes the soul"
More information about the Python-list
mailing list