[Catalyst] using a persistent hash in a model
Matt S Trout
dbix-class at trout.me.uk
Sat Jul 7 16:50:15 GMT 2007
On Sat, Jul 07, 2007 at 04:52:19PM +0200, Daniel McBrearty wrote:
> 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?
For a single machine deployment I'd try DBM::Deep
--
Matt S Trout Need help with your Catalyst or DBIx::Class project?
Technical Director Want a managed development or deployment platform?
Shadowcat Systems Ltd. Contact mst (at) shadowcatsystems.co.uk for a quote
http://chainsawblues.vox.com/ http://www.shadowcatsystems.co.uk/
More information about the Catalyst
mailing list