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