I'm about to go to bed, but I'll give you all an update.

The <objectCache> section now looks akin to this:

    <objectCache>
      <defaultcache provider="transfer.com.cache.provider.EHCacheProvider">
        <setting name="config" value="/test/resources/ehcache.xml"/>
      </defaultcache>
      <cache class="none.Basic"
provider="transfer.com.cache.provider.NoCacheProvider"/>
      <cache class="none.Child"
provider="transfer.com.cache.provider.NoCacheProvider"/>
  </objectCache>

So the 'provider' attribute specifies what Cache Provider, which is a CFC
that extends AbstractBaseProvider, which can be found here:
http://svn.riaforge.org/transfer/transfer/branches/pluggable_cache/com/cache/provider/AbstractBaseProvider.cfc

The <setting> values get pass to the init() of the Provider.

(Some more basic statistic based methods will be added later for simple
reporting, and tied back into the CacheMonitor)

So you see you can set up a defaultCacheProvider, and also use a specific
CacheProvider for specific classes as well - so you can mix and match caches
(possibly at your own peril ;o) )

Because you can also extend the Provider yourself, you can do all sorts of
weird and wonderful things.

I'm writing up an EHCache one as the default, which will have some
limitations as to the platform it can do things on (No CF7, quite possibly
not going to work on some shared hosts, due to classpath restrictions), so
I'll be looking for other people to do some intergration as well (A ColdBox
cache adapter would be really cool, or any other cache framework).  The only
major dependency is that the cache framework has to be able to tell you when
something gets discarded, as that is how Objects know to drop collections
and the like when things get deleted/discarded from the cache.

Anyway, it's almost midnight here, I'm gonna grab some shut eye... and then
get up tomorrow morning and rip apart Transfer some more as the whole nation
stops for a horse race...

Mark
-- 
E: [email protected]
T: http://www.twitter.com/neurotic
W: www.compoundtheory.com

--~--~---------~--~----~------------~-------~--~----~
Before posting questions to the group please read:
http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer

You received this message because you are subscribed to the Google Groups 
"transfer-dev" 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/transfer-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to