Denis,

They'll have to be there to be backwards compatible, so I assume they will
be.

Thanks for info on how you're using caching.  Anyone else have any input?

Doug Hughes, President
Alagad Inc.
[email protected]
888 Alagad4 (x300)
Office: 919-550-0755
Fax: 888-248-7836


On Wed, Apr 22, 2009 at 2:36 PM, Dennis Clark <[email protected]> wrote:

> I'm using MG2 caching in my current project, specifically to cache
> mostly-static queries. I don't know of any explicit support for caching
> rendered views in MG2.
>
> If you've looked at the code I'm sure you've already seen it, but the
> current MG2 documention omits the removeFromCache(name:string) method. It's
> handy for expiring stale items.
>
> The existsInCache(name:string) works as designed for checking the cache,
> but its use often leads to race conditions. I prefer to call getFromCache()
> within a cftry and catch any thrown ModelGlue.Util.TimedCache.ItemNotFound
> exceptions.
>
> Can we expect to see these methods implemented in the upcoming MG3 beta?
>
>
>
> On Wed, Apr 22, 2009 at 12:32 PM, Doug Hughes <[email protected]> wrote:
>
>>
>> I'm working on the documentation for MG3 caching.  To be honest, it's not
>> a feature I've used much in either MG 2 or 3.
>>
>> My recollection was that in MG 2 you had some caching options.   I've been
>> digging through the documentation and I'm not getting much of anywhere.  My
>> recollection was that there was a cache attribute you could use on views?
>> Or maybe on event handlers as well?
>>
>> I've found a set of functions on the controller to add items to the cache,
>> check the cache for items and get them.  Was there anythings else, or is
>> this it in MG2?  (As a note, those functions on the controller are NOT
>> implemented in MG3, as far as I can tell.)
>>
>> I'm pretty much up to speed on the caching options in MG3, but if anyone
>> wants to add anything, please let me know.
>>
>> Thanks,
>>
>> Doug Hughes, President
>> Alagad Inc.
>> [email protected]
>> 888 Alagad4 (x300)
>> Office: 919-550-0755
>> Fax: 888-248-7836
>>
>>
>>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "model-glue" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en

For more about Model-Glue, check http://www.model-glue.com .
-~----------~----~----~----~------~----~------~--~---

Reply via email to