[Catalyst] using a persistent hash in a model

Daniel McBrearty danielmcbrearty at gmail.com
Sat Jul 7 15:52:19 GMT 2007


Hi

I want to use a persistent hash in a model, using (I guess) Storable.
The hash would get inititalised in new, and modified in the model. I
would use lock_store to save any changes as data is modified in the
model class.

This would be OK in the test app, but as the app will get used under
fast_cgi, is this safe? Given that there can be a number of cat
instances running, presumably there will be as many model classes, and
therefore they will not be in sync as data is updated?

Is there any easy way to keep some ad-hoc persistent data out of the database?

cheers

Daniel


-- 
Daniel McBrearty
email : danielmcbrearty at gmail.com
http://www.engoi.com
http://danmcb.vox.com
http://danmcb.blogger.com
find me on linkedin and facebook
BTW : 0873928131



More information about the Catalyst mailing list