Joe,

I haven't seen a cache strategy that is Railo specific come across my desk yet. By default, it looks like the cachePut() function in Railo allows you to send it an expiry timespan. It would be a matter of just replacing a few lines of code. Looks like reaping is automatic in the Railo specific caching layer so M2 reap() would not need to be implemented.

We do attach samples of code to directly on wiki entries so if you come up with sometime -- feel free to write an article. An entry call "Building a Custom Cache Strategy" would be great! Might be good to keep a log of what you do if you build a Railo specific strategy. Also, I'm more than willing to peer review code and provide you feedback if you write a strategy.

Best,
.Peter

Joe Roberts said the following on 10/20/2010 04:08 AM:
Hi.

I'm really impressed with the MachII caching functionality, it's a
killer feature!

I would like to experiment putting my MachII caches into different
storages (Memecached, MongoDB, CouchDB, etc). The easiest way for me
to do this would be to use the native cfcache (or cacheGet/cachePut)
methods, as I can then use my easily switch the underlying storage
using the admin (I'm running Railo).

I want to start with a cfcache version of the TimeSpanCache. I would
get stuck in if I had the time right now, but I don't, so I thought I
would check...

1) Has anyone created a cfcache version of the TimeSpanCache?
2) Is there a resource where we can find cache strategies that other
people are sharing?

If the answer is no, then when I do get around to writing a new cache
strategy, I'll be sure to share it and reply here with a link.

Many thanks

Joe


--
You received this message because you are subscribed to Mach-II for CFML list.
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/mach-ii-for-coldfusion?hl=en

***New URLs as of April 29th, 2010***
SVN: http://svn.mach-ii.com/machii/
Wiki / Documentation / Tickets: http://trac.mach-ii.com/machii/

Reply via email to