コード例 #1
0
 public void setCacheTime(long cacheTime) {
   // comes in as minutes, store in milliseconds
   setProperty(CACHE_TIME, Long.toString(cacheTime * MILLIS_IN_MINUTE));
 }
コード例 #2
0
 public void setSessionTime(long time) {
   // comes in as minutes, store in milliseconds
   setProperty(SESSION_TIME, Long.toString(time * MILLIS_IN_MINUTE));
 }