EhCache caching strategy

26 views
Skip to first unread message

Dave

unread,
Jan 23, 2012, 11:06:54 PM1/23/12
to Mach-II for CFML
Hey all,

Has anyone written a caching strategy for Eh-Cache/Mach-II.

dave

Peter J. Farrell

unread,
Jan 23, 2012, 11:57:28 PM1/23/12
to mach-ii-for...@googlegroups.com, bmem...@hotmail.com
Bryan Memmelaar at Curaspan I believe wrote one and I think he said he'd
open source it. @Bryan, care to share?

.pjf

Dave said the following on 01/23/2012 10:06 PM:


> Hey all,
>
> Has anyone written a caching strategy for Eh-Cache/Mach-II.
>
> dave
>


--
Peter J. Farrell
pe...@mach-ii.com
p...@maestropublishing.com
http://blog.maestropublishing.com
Identi.ca / Twitter: @maestrofjp

Dave

unread,
Jan 24, 2012, 11:02:01 PM1/24/12
to Mach-II for CFML
I'm happy to write one and give it away if @Bryan isn't contactable/
can't.

I do have have an odd-ball requirement that I wanted to get your
opinion on. I've been looking through the framework and can't figure
out how to implement it.


The problem is that the generation of my cached content dictates the
TTL.

For example, consider a list of open jobs (positions). Each job has a
jobClosed date. I want the list/html to expire at the time the first
job expires. I can determine that only at the time the time I
"execute" the code within the cache nodes.

<cache alias="TheJobList">
<notify listener="someManager" method="getJobList"
resultArg="JobList" />
<view-page name="jobs.mainListJobs" />
</cache>


It's almost like I need some way for the getJobList method to
communicate with the cache about the expiry date as it's caching the
item.

Do you have any suggestions to achieve this?

Dave

On Jan 24, 3:57 pm, "Peter J. Farrell" <pe...@mach-ii.com> wrote:
> Bryan Memmelaar at Curaspan I believe wrote one and I think he said he'd
> open source it.  @Bryan, care to share?
>
> .pjf
>
> Dave said the following on 01/23/2012 10:06 PM:
>
> > Hey all,
>
> > Has anyone written a caching strategy for Eh-Cache/Mach-II.
>
> > dave
>
> --
> Peter J. Farrell
> pe...@mach-ii.com
> p...@maestropublishing.comhttp://blog.maestropublishing.com
> Identi.ca / Twitter: @maestrofjp
Reply all
Reply to author
Forward
0 new messages