01: package org.shiftone.cache.policy.lru;
02:
03: import org.shiftone.cache.util.AbstractPolicyCacheFactory;
04: import org.shiftone.cache.util.reaper.ReapableCache;
05:
06: /**
07: * Creates a least-recently-used cache.
08: *
09: *
10: * @author <a href="mailto:jeff@shiftone.org">Jeff Drost</a>
11: * @version $Revision: 1.7 $
12: */
13: public class LruCacheFactory extends AbstractPolicyCacheFactory {
14:
15: public ReapableCache newReapableCache(String cacheName,
16: long timeoutMilliSeconds, int maxSize) {
17: return new LruCache(cacheName, timeoutMilliSeconds, maxSize);
18: }
19:
20: public String toString() {
21: return "LruCacheFactory";
22: }
23: }
|