Here is a solution that may take a little extra work, but does not fit.
Create your own script daemon as the host for your memory cache, and then use Win32 :: Pipe to turn it into a pipe server. Using NamedPipes, your client scripts can then connect to it and execute transactions (e.g. store / retrieve data / memory).
If you want a fantasy, you can find Win32 extensions to create a Win32 service for your daemon, so it loads automatically when it boots.
You can download the current version of Win32 :: Pipe and see examples @ http://www.roth.net/perl/pipe/ .
Note: The Win32 :: Pipe module that ships with the ActiveState Perl distribution does not work.
source share