oscache 사용 간단기

web 2008. 8. 27. 00:05

참조

http://www.opensymphony.com/oscache/wiki/Cron%20Expressions.html

 

 

<cache:cache  key="oscacheTest" scope="application" cron="0 2 * * * ">

 <b>Test </b><br><br>

<%

  List list = action.excute(); // DB에서 데이타 가져오기.

  Entity entity = null;

  for(int i=0;i<list.size();i++) {

   entity = (Entity)list.get(i);

%>

<%= entity.getMethod() %> <br>

<% }%>

</cache:cache>

Posted by '김용환'
,