Paul Johnston wrote:
> Coming (back after 7 years) to perl from other languages there are
> certain things in other languages that you want to be available in
> perl. One of those things is from ColdFusion and is what I'm asking about.
welcome back
> In ColdFusion, you have "applications" and they have "session" and
> "application" variables. These are in-memory variables. The session
> variables are the same as we would understand, but the application
> variables are an in-memory store that is the same for everyone. Very
> helpful for caching application specific data *if* you don't overload it.
This isn't a language issue per-say, but a server issue. It's my understanding
that ColdFusion runs on an application server that will maintain state for you.
You can do something very similar if you were running under mod_perl and you
might be able to accomplish the same thing using another running daemon like
memcached, but just using mod_cgi means that everything is cleared out of
memeory after each run.
> Regarding caching data - a file cache is almost never quicker than a DB
> based cache, *but* an in-memory cache available to all users is
> definitely quicker. You would only ever cache data in that way that was
> specific to the application. You already have session variables for
> session specific (user specific application) so that's important.
Just in case you haven't seen memcached it's work a look if you have can have it
running on your server.
--
Michael Peters
Developer
Plus Three, LP
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/suppressed/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.